diff options
author | Akshay Modi <nareshmodi@google.com> | 2018-05-17 16:52:07 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-17 16:55:30 -0700 |
commit | 56ba8444c5b65c932e910e18b1ee3d1c5c4243f6 (patch) | |
tree | 1ac00e8cb8a5ad212ca1465a6dd1663934d677ed /tensorflow/python/pywrap_tfe.i | |
parent | 485571dd92532ed5d6989e419b4ee87342c18cbf (diff) |
Misc changes found when debugging an unrelated problem.
- (pywrap_tfe.i) Improve error message for better debugging TFE_Py_Execute failures.
- (pywrap_tfe_src.cc) Accept _value of None
- (base.i) Remove unnecessary temporary
PiperOrigin-RevId: 197073571
Diffstat (limited to 'tensorflow/python/pywrap_tfe.i')
-rw-r--r-- | tensorflow/python/pywrap_tfe.i | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tensorflow/python/pywrap_tfe.i b/tensorflow/python/pywrap_tfe.i index fde3223e96..5f1fafb9dc 100644 --- a/tensorflow/python/pywrap_tfe.i +++ b/tensorflow/python/pywrap_tfe.i @@ -153,9 +153,12 @@ limitations under the License. if (EagerTensor_CheckExact(elem)) { (*$1)[i] = EagerTensor_Handle(elem); } else { - SWIG_exception_fail(SWIG_TypeError, - "provided list of inputs contains objects other " - "than 'EagerTensor'"); + SWIG_exception_fail( + SWIG_TypeError, + tensorflow::strings::StrCat( + "provided list of inputs contains objects other " + "than 'EagerTensor'. Item ", + i, " is ", elem->ob_type->tp_name).c_str()); } } } |