This commit is contained in:
parent
8cdfc53a63
commit
ed8d661b5d
|
@ -221,8 +221,7 @@ Status TfDataTypeFormDlDataType(const DLDataType& dtype,
|
|||
// Wraps the deleter function of DLManagedTensor to match the function signature
|
||||
// TFE_NewTensorHandleFromDeviceMemory.
|
||||
void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) {
|
||||
DLManagedTensor* dlmt = static_cast<DLManagedTensor*>(dlmt_vptr);
|
||||
dlmt->deleter(const_cast<DLManagedTensor*>(dlmt));
|
||||
TFE_CallDLManagedTensorDeleter(dlmt_vptr);
|
||||
}
|
||||
|
||||
// Checks whether the stride array matches the layout of compact, row-majored
|
||||
|
|
Loading…
Reference in New Issue