diff options
author | 2017-10-30 09:20:20 -0700 | |
---|---|---|
committer | 2017-10-30 09:23:47 -0700 | |
commit | 7fd261602677d3c251fba05264a20318231deb76 (patch) | |
tree | 42eca70a73d9b7a5fe6207057a54024cf39677ea /tensorflow/c/c_api.h | |
parent | 4723f8f6ed4e43632ea90456bd36a1f8e8b1aeb8 (diff) |
Add TF_GraphVersions() to C API and use in Graph.graph_def_versions()
PiperOrigin-RevId: 173902666
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r-- | tensorflow/c/c_api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h index ca5c934634..bb569d67fc 100644 --- a/tensorflow/c/c_api.h +++ b/tensorflow/c/c_api.h @@ -871,6 +871,11 @@ TF_CAPI_EXPORT extern void TF_GraphGetOpDef(TF_Graph* graph, TF_Buffer* output_op_def, TF_Status* status); +// Returns the serialized VersionDef proto for this graph. +TF_CAPI_EXPORT extern void TF_GraphVersions(TF_Graph* graph, + TF_Buffer* output_version_def, + TF_Status* status); + // TF_ImportGraphDefOptions holds options that can be passed to // TF_GraphImportGraphDef. typedef struct TF_ImportGraphDefOptions TF_ImportGraphDefOptions; |