Removing TensorHandleList Delete APIs, since TensorHandleList pointer is owned by ConcreteFunction.
PiperOrigin-RevId: 311541122 Change-Id: I0a538b3452c62ee021cf7a41257cbcf580c0d3f2
This commit is contained in:
parent
e033fd5b33
commit
8565ed2eed
@ -32,8 +32,5 @@ TFE_TensorHandle* TF_TensorHandleListGet(const TF_TensorHandleList* list,
|
|||||||
return tensorflow::wrap((*tensorflow::unwrap(list))[i]);
|
return tensorflow::wrap((*tensorflow::unwrap(list))[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TF_DeleteTensorHandleList(const TF_TensorHandleList* list) {
|
|
||||||
delete tensorflow::unwrap(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // end extern "C"
|
} // end extern "C"
|
||||||
|
@ -36,10 +36,6 @@ TF_CAPI_EXPORT extern size_t TF_TensorHandleListSize(
|
|||||||
TF_CAPI_EXPORT extern TFE_TensorHandle* TF_TensorHandleListGet(
|
TF_CAPI_EXPORT extern TFE_TensorHandle* TF_TensorHandleListGet(
|
||||||
const TF_TensorHandleList* list, int i);
|
const TF_TensorHandleList* list, int i);
|
||||||
|
|
||||||
// Deletes `list`.
|
|
||||||
TF_CAPI_EXPORT extern void TF_DeleteTensorHandleList(
|
|
||||||
const TF_TensorHandleList* list);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // end extern "C"
|
} // end extern "C"
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user