Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for _device_ordinal (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/jit/kernels/xla_ops.cc

        xla::LocalClient* client, se::DeviceMemoryAllocator* allocator) {
      se::Stream* stream = GetStream(ctx);
      int device_ordinal = stream ? stream->parent()->device_ordinal()
                                  : client->default_device_ordinal();
      XlaComputationLaunchContext launch_context(
          client, allocator, device_ordinal,
          /*allocate_xla_tensors=*/platform_info.is_on_xla_device(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.td

              %2 = "tf._XlaRecvAtHost"(%1) {device_ordinal = 0 : i64, key = "host_compute_channel_0_0_args"} : (tensor<3x!tf_type.string>) -> tensor<f32>
              %3 = "tf.Identity"(%2) : (tensor<f32>) -> tensor<f32>
              "tf._XlaSendFromHost"(%3, %1) {device_ordinal = 0 : i64, key = "host_compute_channel_0_0_retvals"} : (tensor<f32>, tensor<3x!tf_type.string>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      Output x = ops::Placeholder(root.WithOpName("x"), DT_FLOAT);
      NameAttrList f_name_attr;
      f_name_attr.set_name("XTimesTwoFloat");
      ops::TPUPartitionedCall f(root.WithOpName("f"), {x}, /*device_ordinal=*/0,
                                {DT_FLOAT}, f_name_attr);
    
      TF_ASSERT_OK(root.ToGraph(&graph));
      EXPECT_TRUE(IsInferenceGraph(graph, /*function_library=*/nullptr));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top