aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api.h
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2017-02-27 10:28:30 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-27 10:44:09 -0800
commitd18f4c54cd5e6a009c4ab1bc01c3a5432bafa6ae (patch)
tree6e1343792b22d4b7f5481c53e2fbdc4fb36bfcaa /tensorflow/c/c_api.h
parent8f7e0df28846b320cc43b417ee61fc01890ffc72 (diff)
C API: Keep the TF_LoadSessionFromSavedModel symbol in Android builds.
Though, the function will return an error. Required for #7688 Change: 148664204
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r--tensorflow/c/c_api.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h
index 18bd1bc318..02ba0ac509 100644
--- a/tensorflow/c/c_api.h
+++ b/tensorflow/c/c_api.h
@@ -932,10 +932,6 @@ typedef struct TF_Session TF_Session;
extern TF_Session* TF_NewSession(TF_Graph* graph, const TF_SessionOptions* opts,
TF_Status* status);
-#ifndef __ANDROID__
-// TODO(ashankar): Remove the __ANDROID__ guard. This will require ensuring that
-// the tensorflow/cc/saved_model:loader build target is Android friendly.
-
// This function creates a new TF_Session (which is created on success) using
// `session_options`, and then initializes state (restoring tensors and other
// assets) using `run_options`.
@@ -954,7 +950,6 @@ TF_Session* TF_LoadSessionFromSavedModel(
const TF_SessionOptions* session_options, const TF_Buffer* run_options,
const char* export_dir, const char* const* tags, int tags_len,
TF_Graph* graph, TF_Buffer* meta_graph_def, TF_Status* status);
-#endif // __ANDROID__
// Close a session.
//