From 1da763a1cc94fc5e4ad1822788b444b77623538c Mon Sep 17 00:00:00 2001 From: Igor Ganichev Date: Mon, 18 Sep 2017 20:19:13 -0700 Subject: Add function gradient support to C API Also, change the internal representation of TF_Function and rename TF_GraphAddFunction to TF_GraphAddFunctionCopy to make it clear that a copy of the function is added to the graph. Any subsequent modifications to the function will not be reflected in the copy added to the graph. PiperOrigin-RevId: 169187793 --- tensorflow/c/c_api_internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tensorflow/c/c_api_internal.h') diff --git a/tensorflow/c/c_api_internal.h b/tensorflow/c/c_api_internal.h index 68c324f2b9..23ec1fac6f 100644 --- a/tensorflow/c/c_api_internal.h +++ b/tensorflow/c/c_api_internal.h @@ -131,8 +131,7 @@ struct TF_DeviceList { }; struct TF_Function { - // Currently contains a single function and no gradients - tensorflow::FunctionDefLibrary fdef_lib; + tensorflow::FunctionDef fdef; }; namespace tensorflow { -- cgit v1.2.3