Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for DLDevice (0.04 seconds)

  1. tensorflow/c/eager/dlpack.cc

              DataType_Name(static_cast<DataType>(data_type)),
              " is not supported by dlpack");
          break;
      }
      return dtype;
    }
    
    // Gets DLPack's DLDevice from eager tensor handle.
    DLDevice GetDlContext(TFE_TensorHandle* h, TF_Status* status) {
      DLDevice ctx;
      const char* device_name =
          tensorflow::unwrap(h)->BackingDeviceName(&status->status);
      DeviceNameUtils::ParsedName parsed_name;
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Mar 13 23:41:52 GMT 2025
    - 13K bytes
    - Click Count (0)
  2. tensorflow/c/eager/dlpack.h

    #define TENSORFLOW_C_EAGER_DLPACK_H_
    
    #include "tensorflow/c/eager/c_api.h"
    
    namespace tensorflow {
    
    // PyCapsule name for DLPack Tensor
    const char* const kDlTensorCapsuleName = "dltensor";
    
    // Returns the DLDevice* for the given eager tensor handle.
    //
    // The caller takes ownership of the returned pointer and is responsible for
    // deleting it.
    TF_CAPI_EXPORT extern void* TFE_GetDLDevice(TFE_TensorHandle* h,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Mar 13 23:41:52 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top