Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TensorHandlePtr (0.15 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_lib.h

          const ParallelDevice& parallel_device,
          std::vector<TensorHandlePtr> components, TF_Status* status);
      // Uses the provided shape without additional checks, which avoids blocking
      // when ParallelTensor::Shape is called.
      static std::unique_ptr<ParallelTensor> FromTensorHandles(
          const ParallelDevice& parallel_device,
          std::vector<TensorHandlePtr> components, absl::Span<const int64_t> shape,
          TF_Status* status);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        cancellation_manager_ = &cancellation_manager;
        execution_state_ = ExecutionState::kReadyToExecute;
      }
      start_execute_.notify_one();
    }
    
    std::vector<TensorHandlePtr> DeviceThread::Join(TF_Status* status) {
      std::vector<TensorHandlePtr> result;
      {
        tensorflow::mutex_lock l(execution_mutex_);
        while (execution_state_ != ExecutionState::kHasResult) {
          finished_execute_.wait(l);
        }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device.cc

        return;
      }
    
      for (int i = 0; i < typed_outputs.size(); ++i) {
        MaybeParallelTensorOwned typed_output(std::move(typed_outputs[i]));
        if (absl::holds_alternative<TensorHandlePtr>(typed_output)) {
          outputs[i] = absl::get<TensorHandlePtr>(typed_output).release();
        } else {
          outputs[i] = ParallelTensorToTensorHandle(
                           named_device->name(), context,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      TensorHandlePtr two_vector = VectorFloatTensorHandle({3., 4.}, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TensorHandlePtr three_vector =
          VectorFloatTensorHandle({5., 6., 7.}, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      std::vector<TensorHandlePtr> vector_handles;
      vector_handles.reserve(2);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top