diff options
Diffstat (limited to 'tensorflow/python/eager/pywrap_tensor.cc')
-rw-r--r-- | tensorflow/python/eager/pywrap_tensor.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tensorflow/python/eager/pywrap_tensor.cc b/tensorflow/python/eager/pywrap_tensor.cc index 653f3ef84e..ca283862f9 100644 --- a/tensorflow/python/eager/pywrap_tensor.cc +++ b/tensorflow/python/eager/pywrap_tensor.cc @@ -20,7 +20,6 @@ limitations under the License. #include "tensorflow/python/lib/core/py_seq_tensor.h" #include "tensorflow/python/lib/core/safe_ptr.h" -#include "tensorflow/python/eager/pywrap_tensor.h" #include "tensorflow/python/eager/pywrap_tfe.h" #include "tensorflow/c/c_api.h" @@ -574,7 +573,7 @@ bool EagerTensor_CheckExact(const PyObject* o) { return Py_TYPE(o) == EagerTensorType; } -TFE_TensorHandle* EagerTensor_Handle(const PyObject* o) { +TFE_TensorHandle* EagerTensorHandle(const PyObject* o) { return reinterpret_cast<const EagerTensor*>(o)->handle; } @@ -595,11 +594,6 @@ PyObject* EagerTensorFromHandle(TFE_TensorHandle* handle) { return reinterpret_cast<PyObject*>(t); } -tensorflow::int64 EagerTensor_id(const PyObject* tensor) { - CHECK(EagerTensor_CheckExact(tensor)); - return reinterpret_cast<const EagerTensor*>(tensor)->id; -} - PyObject* TFE_Py_InitEagerTensor(PyObject* base_class) { if (!PyType_Check(base_class)) { PyErr_SetString( |