Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for parallel_tensor (0.2 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.cc

            std::unique_ptr<ParallelTensor> parallel_tensor(
                parallel_device.CopyToParallelDevice(
                    context, absl::get<TFE_TensorHandle*>(input), status));
            if (TF_GetCode(status) != TF_OK) return absl::nullopt;
            parallel_inputs.push_back(parallel_tensor.get());
            implicitly_broadcast_tensors.emplace_back(std::move(parallel_tensor));
          } else {
            TF_SetStatus(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib.h

    // ParallelDevice.
    class ParallelTensor {
     public:
      // Construct a ParallelTensor from TensorHandles placed on the component
      // devices of a ParallelDevice. If called, ParallelTensor::Shape inspects
      // `components` to determine a shape.
      static std::unique_ptr<ParallelTensor> FromTensorHandles(
          const ParallelDevice& parallel_device,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          TF_SetStatus(status, TF_INTERNAL,
                       "Components of a ParallelTensor must all have "
                       "the same dtype");
          return nullptr;
        }
      }
      return std::unique_ptr<ParallelTensor>(
          new ParallelTensor(parallel_device, std::move(components), shape, dtype));
    }
    
    std::unique_ptr<ParallelTensor> ParallelTensor::FromTensorHandles(
        const ParallelDevice& parallel_device,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

          parallel_device.Execute(context.get(), std::vector<ParallelTensor*>(),
                                  "VarHandleOp", TFE_OpGetAttrs(handle_op.get()),
                                  /*expected_max_outputs=*/1, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      const std::vector<std::unique_ptr<ParallelTensor>>& handles = *outputs;
      std::vector<ParallelTensor*> handle_inputs;
      handle_inputs.reserve(handles.size());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_test.cc

                               &incorrect_components, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT)
            << TF_Message(status.get());
      }
    
      {
        // Try to pass a ParallelTensor to TPUReplicatedInput
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
        TensorHandlePtr combined_value = CreatePerDeviceValues(
            context.get(), correct_components, device_name, status.get());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 06 23:56:17 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top