Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for _device_ordinal (0.23 sec)

  1. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      std::unique_ptr<FunctionBody> host_fbody;
      AttrValue device_ordinal_temp_value;
      device_ordinal_temp_value.set_i(0);
      protobuf::Map<string, AttrValue> host_func_attrs;
      host_func_attrs["_device_ordinal"] = device_ordinal_temp_value;
      TF_CHECK_OK(FunctionDefToBodyHelper(
          *fld.Find("host_graph"), AttrSlice(&host_func_attrs), &fld, &host_fbody));
      Graph *host_graph = host_fbody->graph;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_device.cc

        : device_ordinal_(device_ordinal),
          device_type_(device_type),
          platform_(platform),
          shape_determination_fns_(std::move(shape_determination_fns)),
          padded_shape_fn_(std::move(padded_shape_fn)),
          use_multiple_streams_(use_multiple_streams) {}
    
    int XlaDevice::Metadata::device_ordinal() const { return device_ordinal_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_device.h

      class Metadata {
       public:
        Metadata(int device_ordinal, se::Platform* platform,
                 const DeviceType& device_type,
                 std::vector<XlaShapeLayoutHelpers::ShapeDeterminationFns>
                     shape_determination_fns,
                 PaddedShapeFn padded_shape_fn, bool use_multiple_streams);
    
        // The index of the device on this host.
        int device_ordinal() const;
    
        se::Platform* platform() const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_launch_util.cc

        xla::LocalClient* client, se::DeviceMemoryAllocator* xla_allocator,
        int device_ordinal, bool allocate_xla_tensors, bool use_multiple_streams)
        : client_(client),
          xla_allocator_(xla_allocator),
          allocate_xla_tensors_(allocate_xla_tensors),
          use_multiple_streams_(use_multiple_streams),
          device_ordinal_(device_ordinal) {
      if (use_multiple_streams_) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

    }
    
    // Returns the device ordinal (`device_ordinal`) for a replica (`replica_id`)
    // and logical core (`logical_core`).
    // `replica_id` is the index of the ancestor ReplicateOp in [0, num_replicas).
    // `logical_core` is the index of the TPU core in [0, num_cores_per_replica).
    // `device_ordinal` is the index of the TPU core relative to its host.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

          layout_preference_fn, shape_representation_fn}};
    }
    
    std::unique_ptr<XlaDevice::Metadata> CreateXlaDeviceMetadata(
        DeviceType compilation_device_type) {
      return std::make_unique<XlaDevice::Metadata>(
          /*device_ordinal=*/0, /*platform=*/nullptr, compilation_device_type,
          GetShapeDeterminationFns(), XlaDevice::PaddedShapeFn(),
          /*use_multiple_streams=*/false);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_launch_util.h

      // objects.
      XlaComputationLaunchContext(xla::LocalClient* client,
                                  se::DeviceMemoryAllocator* xla_allocator,
                                  int device_ordinal, bool allocate_xla_tensors,
                                  bool use_multiple_streams);
    
      // Builds a XlaCompiler::Argument vector from the arguments to an XlaLaunch
      // op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_tpu_device.cc

            input->dtype(), shape, dst_xla_context->client(), dst_device_ordinal));
    
        VLOG(2) << "TpuDeviceToDeviceCopy: src: "
                << src_compute_stream->parent()->device_ordinal() << ", "
                << " dst: " << dst_compute_stream->parent()->device_ordinal()
                << ", "
                << " input buffers: " << xla_input->shaped_buffer().ToString()
                << " output buffers: " << xla_output->shaped_buffer().ToString();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_device_context.cc

        TF_RET_CHECK(!xla_tensor->has_shaped_buffer());
    
        TF_RETURN_IF_ERROR(
            xla_tensor->AllocateShapedBuffer(device_tensor->dtype(), shape, client_,
                                             stream_->parent()->device_ordinal()));
    
        // The cpu_tensor and literal that we created here hold the data of host
        // tensor in descending layout. The layout could be different from layout in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          auto recv_at_host = rewriter.create<TF::_XlaRecvAtHostOp>(
              func.getLoc(), op.getOperandTypes(), /*dynamic_key=*/dynamic_key,
              op.getSendKeyAttr(),
              /*device_ordinal=*/rewriter.getI64IntegerAttr(0),
              rewriter.getStringAttr("TPU"));
          for (auto result :
               llvm::zip(cloned_func.getArguments(), recv_at_host->getResults())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top