From ed8d661b5d204d9c9fa1b152ce1c2d61244960a7 Mon Sep 17 00:00:00 2001 From: VoVAllen Date: Thu, 2 Jul 2020 07:37:10 +0000 Subject: [PATCH] cp --- tensorflow/c/eager/dlpack.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tensorflow/c/eager/dlpack.cc b/tensorflow/c/eager/dlpack.cc index f21bb93a1e9..45048bd6efb 100644 --- a/tensorflow/c/eager/dlpack.cc +++ b/tensorflow/c/eager/dlpack.cc @@ -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(dlmt_vptr); - dlmt->deleter(const_cast(dlmt)); + TFE_CallDLManagedTensorDeleter(dlmt_vptr); } // Checks whether the stride array matches the layout of compact, row-majored