aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/eager/graph_callable.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/eager/graph_callable.py')
-rw-r--r--tensorflow/python/eager/graph_callable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/eager/graph_callable.py b/tensorflow/python/eager/graph_callable.py
index ee5d87f083..d40ea982c7 100644
--- a/tensorflow/python/eager/graph_callable.py
+++ b/tensorflow/python/eager/graph_callable.py
@@ -325,7 +325,7 @@ def _graph_callable_internal(func, shape_and_dtypes):
# Also, what about the gradient registry of these functions? Those need to be
# addressed as well.
for f in tmp_graph._functions.values(): # pylint: disable=protected-access
- function._register(f._c_func) # pylint: disable=protected-access
+ function._register(f._c_func.func) # pylint: disable=protected-access
initializer_function = function.GraphModeFunction(
initialization_name,
placeholder_inputs,