Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TensorReference (0.33 sec)

  1. tensorflow/c/eager/dlpack.cc

    // original framework of destruction, and this context will be deleted also.
    struct TfDlManagedTensorCtx {
      TensorReference reference;
      std::vector<int64_t> shape;
      std::vector<int64_t> strides;
      DLManagedTensor tensor;
    
      explicit TfDlManagedTensorCtx(const TensorReference& ref) : reference(ref) {}
    };
    
    // Gets tensor from eager tensor handle.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_device_context.cc

        return absl::OkStatus();
      }();
      if (!status.ok()) {
        done(status);
        return;
      }
    
      // Create a reference to hold onto cpu_tensor until after the literal has
      // been transferred
      TensorReference ref(*cpu_tensor);
      if (UseMultipleStreams()) {
        // Unref the host tensor when the transfer completes.
        // We don't defer the call to done() onto the stream here, and the reasons
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_tpu_device.cc

        // destination stream, but when this function returns, the send requests
        // might not be enqueued to the stream yet, we put it on destination stream.
        TensorReference input_reference(*input);
        std::move(return_substream).release();
        return dst_device_to_device_stream->DoHostCallback(
            [input_reference, done = std::move(done),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top