diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-26 15:34:43 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-26 15:45:34 -0700 |
commit | 5dbb021354e0acda667d823e856ec8be88960b35 (patch) | |
tree | 026b325db796c46d228fbc599697a628d4374bec /tensorflow/c/c_api_experimental.h | |
parent | 2511230c0a9b8e2ec652d00dcedbd75d644e5400 (diff) |
Added a C utility to create a ServerDef proto from text representation.
PiperOrigin-RevId: 214681193
Diffstat (limited to 'tensorflow/c/c_api_experimental.h')
-rw-r--r-- | tensorflow/c/c_api_experimental.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/c/c_api_experimental.h b/tensorflow/c/c_api_experimental.h index a3ca847d96..950ad9aeed 100644 --- a/tensorflow/c/c_api_experimental.h +++ b/tensorflow/c/c_api_experimental.h @@ -131,6 +131,8 @@ TF_CAPI_EXPORT extern void TF_EnqueueNamedTensor(TF_Session* session, int tensor_id, TF_Tensor* tensor, TF_Status* status); +// Create a serialized tensorflow.ServerDef proto. +TF_Buffer* TFE_GetServerDef(const char* text_proto, TF_Status* status); // TODO: remove this API in favor of the next one. TF_CAPI_EXPORT extern TFE_Context* TFE_NewContextFromSession( |