Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for copy_tensor_to_device (0.09 sec)

  1. tensorflow/c/eager/custom_device_testutil.cc

                               bool strict_scope_placement, bool* arrived_flag,
                               bool* executed_flag, TF_Status* status) {
      TFE_CustomDevice custom_device;
      custom_device.copy_tensor_to_device = &CopyToLoggingDevice;
      custom_device.copy_tensor_from_device = &CopyTensorFromLoggingDevice;
      custom_device.delete_device = &DeleteLoggingDevice;
      custom_device.execute = &LoggingDeviceExecute;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Mar 03 20:47:31 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.cc

      return TensorHandlePtr(TFE_NewCustomDeviceTensorHandle(
          context, parallel_device_name.c_str(), t_released->dtype(), t_released,
          handle_methods, status));
    }
    
    // For TFE_CustomDevice::copy_tensor_to_device in the parallel device
    // registration.
    //
    // Since this function is used to satisfy the TFE_CustomDevice C API,
    // device_info is passed in using a C-style generic. It must always be a
    // ParallelDevice.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.h

    typedef struct TFE_CustomDevice {
      int version = TFE_CUSTOM_DEVICE_VERSION;
      // Method to copy a tensor to the custom device.
      TFE_TensorHandle* (*copy_tensor_to_device)(TFE_Context* context,
                                                 TFE_TensorHandle* tensor,
                                                 TF_Status* status,
                                                 void* device_info);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

          ImmediateExecutionTensorHandle* handle,
          ImmediateExecutionTensorHandle** result) override {
        handle->Ref();
        TF_Status status;
        TFE_TensorHandle* result_handle = device_.copy_tensor_to_device(
            context_, tensorflow::wrap(handle), &status, info_);
        handle->Unref();
        if (!status.status.ok()) return status.status;
        *result = tensorflow::unwrap(result_handle);
        (*result)->Ref();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top