Removing TensorHandleList Delete APIs, since TensorHandleList pointer is owned by ConcreteFunction.

PiperOrigin-RevId: 311541122
Change-Id: I0a538b3452c62ee021cf7a41257cbcf580c0d3f2
This commit is contained in:
Brian Zhao 2020-05-14 08:55:13 -07:00 committed by TensorFlower Gardener
parent e033fd5b33
commit 8565ed2eed
2 changed files with 0 additions and 7 deletions

View File

@ -32,8 +32,5 @@ TFE_TensorHandle* TF_TensorHandleListGet(const TF_TensorHandleList* list,
return tensorflow::wrap((*tensorflow::unwrap(list))[i]);
}
void TF_DeleteTensorHandleList(const TF_TensorHandleList* list) {
delete tensorflow::unwrap(list);
}
} // end extern "C"

View File

@ -36,10 +36,6 @@ TF_CAPI_EXPORT extern size_t TF_TensorHandleListSize(
TF_CAPI_EXPORT extern TFE_TensorHandle* TF_TensorHandleListGet(
const TF_TensorHandleList* list, int i);
// Deletes `list`.
TF_CAPI_EXPORT extern void TF_DeleteTensorHandleList(
const TF_TensorHandleList* list);
#ifdef __cplusplus
} // end extern "C"
#endif // __cplusplus