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/platform | |
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/platform')
-rw-r--r-- | tensorflow/python/platform/base.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/platform/base.i b/tensorflow/python/platform/base.i index 478dd46f7e..2e06f26fa4 100644 --- a/tensorflow/python/platform/base.i +++ b/tensorflow/python/platform/base.i @@ -233,7 +233,7 @@ _COPY_TYPEMAPS(unsigned int, mode_t); // Typemaps to automatically raise a Python exception from bad output TF_Status. // TODO(b/77295559): expand this to all TF_Status* output params and deprecate // raise_exception_on_not_ok_status (currently it only affects the C API). -%typemap(in, numinputs=0) TF_Status* status (TF_Status* status) { +%typemap(in, numinputs=0) TF_Status* status { $1 = TF_NewStatus(); } |