Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CustomDevice (0.14 sec)

  1. tensorflow/c/eager/immediate_execution_context.h

    #include "tensorflow/core/platform/tstring.h"
    #include "tensorflow/core/protobuf/config.pb.h"
    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace tensorflow {
    class EagerExecutor;
    class EagerContext;
    class CustomDevice;
    class CustomDeviceOpHandler;
    class Device;
    
    // LINT.IfChange
    // Note: Keep in sync with exported copy of enum in eager/c_api.h.
    enum ContextDevicePlacementPolicy {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

      return const_cast<void*>(
          static_cast<const void*>(tensor->tensor_data().data()));
    }
    
    namespace tensorflow {
    namespace {
    class CustomDeviceAPI : public tensorflow::CustomDevice {
     public:
      CustomDeviceAPI(TFE_Context* context, TFE_CustomDevice device, void* info,
                      string name)
          : context_(context), device_(device), info_(info), name_(name) {}
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  3. tensorflow/c/eager/c_api_experimental.h

    // tensors/ops/etc. and usable in APIs like OpSetDevice/ResetOp/etc.
    
    #define TFE_CUSTOM_DEVICE_VERSION 4
    
    // Struct to be filled in. Functions are required except where indicated.
    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,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
Back to top