From f41959ccb2d9d4c722fe8fc3351401d53bcf4900 Mon Sep 17 00:00:00 2001 From: Manjunath Kudlur Date: Fri, 6 Nov 2015 16:27:58 -0800 Subject: TensorFlow: Initial commit of TensorFlow library. TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108 --- tensorflow/python/lib/core/status_helper.i | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tensorflow/python/lib/core/status_helper.i (limited to 'tensorflow/python/lib/core/status_helper.i') diff --git a/tensorflow/python/lib/core/status_helper.i b/tensorflow/python/lib/core/status_helper.i new file mode 100644 index 0000000000..2e01e79ebd --- /dev/null +++ b/tensorflow/python/lib/core/status_helper.i @@ -0,0 +1,16 @@ +// SWIG test helper for lib::tensorflow::Status + +%include "tensorflow/python/platform/base.i" +%import(module="tensorflow.python.pywrap_tensorflow") "tensorflow/python/lib/core/status.i" + +%inline %{ +#include "tensorflow/core/public/status.h" + +tensorflow::Status NotOkay() { + return tensorflow::Status(tensorflow::error::INVALID_ARGUMENT, "Testing 1 2 3"); +} + +tensorflow::Status Okay() { + return tensorflow::Status(); +} +%} -- cgit v1.2.3