aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/tf_status_helper.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-08-23 21:25:10 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-08-23 21:28:56 -0700
commit1fc456eb0e663e3cf83039b41d5cffabe37a4773 (patch)
tree522462423a6644094623ffbe2bbe0309d6e9509d /tensorflow/c/tf_status_helper.cc
parenteced4b779c0bd6bb33966d557bd43c3aa3b3a316 (diff)
Unify the NDArray <-> Tensor conversion.
PiperOrigin-RevId: 166297415
Diffstat (limited to 'tensorflow/c/tf_status_helper.cc')
-rw-r--r--tensorflow/c/tf_status_helper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/c/tf_status_helper.cc b/tensorflow/c/tf_status_helper.cc
index 747fd672f0..eaaed89500 100644
--- a/tensorflow/c/tf_status_helper.cc
+++ b/tensorflow/c/tf_status_helper.cc
@@ -14,6 +14,7 @@ limitations under the License.
==============================================================================*/
#include "tensorflow/c/tf_status_helper.h"
+#include "tensorflow/c/c_api_internal.h"
namespace tensorflow {
@@ -79,4 +80,8 @@ void Set_TF_Status_from_Status(TF_Status* tf_status, const Status& status) {
}
}
+Status StatusFromTF_Status(const TF_Status* tf_status) {
+ return tf_status->status;
+}
+
} // namespace tensorflow