Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Device (0.19 sec)

  1. tensorflow/c/eager/custom_device_testutil.h

    limitations under the License.
    ==============================================================================*/
    
    #ifndef TENSORFLOW_C_EAGER_CUSTOM_DEVICE_TESTUTIL_H_
    #define TENSORFLOW_C_EAGER_CUSTOM_DEVICE_TESTUTIL_H_
    
    // A simple logging device to test custom device registration.
    #include <memory>
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.h

    void AllocateParallelDevice(const char* device_name,
                                const char* const* underlying_devices,
                                int num_underlying_devices,
                                TFE_CustomDevice* device, void** device_info);
    
    }  // namespace parallel_device
    }  // namespace tensorflow
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

    }
    
    template <std::size_t num_devices>
    void RegisterParallelDevice(
        TFE_Context* context, const char* device_name,
        const std::array<const char*, num_devices>& underlying_devices,
        TF_Status* status) {
      TFE_CustomDevice device;
      void* device_info;
      tensorflow::parallel_device::AllocateParallelDevice(
          device_name, underlying_devices.data(), underlying_devices.size(),
          &device, &device_info);
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib.h

           ++device_index) {
        auto device_value = absl::make_unique<DataType>();
        *device_value = values[device_index];
        std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> tensor(
            TF_NewTensor(
                datatype_enum, /*dims=*/nullptr, /*num_dims=*/0,
                device_value.release(), sizeof(DataType),
                [](void* data, size_t, void* arg) {
                  delete reinterpret_cast<DataType*>(data);
                },
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.h

    // Controls how to act when we try to run an operation on a given device but
    // some input tensors are not on that device.
    // LINT.IfChange
    // Note: Keep in sync with internal copy of enum in eager/context.h.
    typedef enum TFE_ContextDevicePlacementPolicy {
      // Running operations with input tensors on the wrong device will fail.
      TFE_DEVICE_PLACEMENT_EXPLICIT = 0,
      // Copy the tensor to the right device but log a warning.
      TFE_DEVICE_PLACEMENT_WARN = 1,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  6. tensorflow/c/eager/abstract_operation.h

      // returned by DeviceName should be "/device:GPU:*" until a particular GPU is
      // chosen for the operation by the device placement logic in the
      // executor. After that, the value returned by DeviceName will be a full
      // device name such as "/job:localhost/replica:0/task:0/device:GPU:1".
      virtual const string& DeviceName() const = 0;
    
      // Sets the operation device name.
      //
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.h

    //
    // `device_name` must not name an existing physical or custom device. It must
    // follow the format:
    //
    //    /job:<name>/replica:<replica>/task:<task>/device:<type>:<device_num>
    //
    // If the device is successfully registered, `status` is set to TF_OK. Otherwise
    // the device is not usable. In case of a bad status, `device.delete_device` is
    // still called on `device_info` (i.e. the caller does not retain ownership).
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/immediate_execution_operation.h

      virtual ImmediateExecutionContext* GetContext() const = 0;
    
      // Following two methods are used to support custom device.
      // Return true if the inputs contain custom device tensor handle. It means
      // that the argument need to be handled by a custom device.
      virtual bool HasCustomDeviceInput() const = 0;
    
      virtual const tensorflow::OpDef* OpDef() const = 0;
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 22:40:32 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler_internal.h

    };
    using OwnedTFBuffer = std::unique_ptr<TF_Buffer, TFBufferDeleter>;
    
    class CGraphOptimizer : public CustomGraphOptimizer {
     public:
      explicit CGraphOptimizer(TP_Optimizer optimizer, const char* device_type)
          : optimizer_(optimizer), device_type_(device_type) {
        if (optimizer.create_func != nullptr) {
          c_optimizer_ = (*optimizer_.create_func)();
        } else {
          c_optimizer_ = nullptr;
        }
      }
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 08 08:58:23 GMT 2022
    - 3.5K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.h

                                        Tensor* tensor);
    
    absl::StatusOr<xla::PjRtCApiClient*> GetPjRtCApiClient(
        const DeviceType& device_type);
    
    absl::Status ResetPjRtClient(const DeviceType& device_type);
    
    }  // namespace tensorflow
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 09 19:12:59 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top