diff options
author | Igor Ganichev <iga@google.com> | 2017-09-20 11:18:17 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-20 11:21:58 -0700 |
commit | 3e4521bd290e4654a8b1e432d16ca893181ab018 (patch) | |
tree | b9ef55fa581f9f3acf133c7c145efb4b5746e121 /tensorflow/c/c_api.h | |
parent | 1a426b7897b2228715cf74986444332cf5d5eba6 (diff) |
Add function description parameter to TF_GraphToFunction
PiperOrigin-RevId: 169421145
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r-- | tensorflow/c/c_api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h index d682793007..a17c877804 100644 --- a/tensorflow/c/c_api.h +++ b/tensorflow/c/c_api.h @@ -1085,6 +1085,7 @@ TF_CAPI_EXPORT void TF_AddGradients(TF_Graph* g, TF_Output* y, int ny, // names - "[a-z][a-z0-9_]*". In the latter case, // names for outputs will be generated automatically. // opts - various options for the function, e.g. XLA's inlining control. +// description - optional human-readable description of this function. // status - Set to OK on success and an appropriate error on failure. // // Note that when the same TF_Output is listed as both an input and an output, @@ -1116,7 +1117,7 @@ TF_CAPI_EXPORT extern TF_Function* TF_GraphToFunction( const TF_Graph* fn_body, const char* fn_name, int num_opers, const TF_Operation* const* opers, int ninputs, const TF_Output* inputs, int noutputs, const TF_Output* outputs, const char* const* output_names, - const TF_FunctionOptions* opts, TF_Status* status); + const TF_FunctionOptions* opts, const char* description, TF_Status* status); // Write out a serialized representation of `func` (as a FunctionDef protocol // message) to `output_func_def` (allocated by TF_NewBuffer()). |