aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Passos <apassos@google.com>2018-03-23 13:23:35 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-25 02:56:57 -0700
commit9b9ca14ae9720b7c28351191a9d9529fc68884b1 (patch)
tree0e1cae22ba77cc6aed1d4cf9538c503a2af49753 /tensorflow/python/lib
parentcf5729fc4710c9e579afa7c1176b00c9c0acec6e (diff)
Moves TensorHandle to common_runtime
PiperOrigin-RevId: 190265301
Diffstat (limited to 'tensorflow/python/lib')
-rw-r--r--tensorflow/python/lib/core/py_func.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/lib/core/py_func.cc b/tensorflow/python/lib/core/py_func.cc
index 02eafd42b3..22317a348c 100644
--- a/tensorflow/python/lib/core/py_func.cc
+++ b/tensorflow/python/lib/core/py_func.cc
@@ -166,7 +166,7 @@ bool IsSingleNone(PyObject* obj) {
// Retrieves a Tensor from `eager_tensor` and stores it in `output_tensor`.
tensorflow::Status ExtractTensorFromEagerTensor(const PyObject* eager_tensor,
const Tensor** output_tensor) {
- return EagerTensor_Handle(eager_tensor)->Tensor(output_tensor);
+ return EagerTensor_Handle(eager_tensor)->handle->Tensor(output_tensor);
}
// Calls the registered py function through the trampoline.