- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for TFE_GetDLDevice (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tensorflow/c/eager/dlpack.h
// 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, TF_Status* status); // Converts eager tensor handle to DLPack (DLManagedTensor*), and return the // void* for further PyCapsule construction.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) -
tensorflow/c/eager/dlpack.cc
if (shape_arr[i] != 1 && stride_arr[i] != expected_stride) { valid = false; } expected_stride *= shape_arr[i]; } return valid; } } // namespace void* TFE_GetDLDevice(TFE_TensorHandle* h, TF_Status* status) { auto dl_device = GetDlContext(h, status); return new DLDevice{dl_device.device_type, dl_device.device_id}; } void TFE_CallDLManagedTensorDeleter(void* dlm_ptr) {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Mar 13 23:41:52 GMT 2025 - 13K bytes - Click Count (0)