aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/framework/function.py')
-rw-r--r--tensorflow/python/framework/function.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/python/framework/function.py b/tensorflow/python/framework/function.py
index 46da2646ec..7c0201f93e 100644
--- a/tensorflow/python/framework/function.py
+++ b/tensorflow/python/framework/function.py
@@ -769,6 +769,10 @@ class Defun(object):
default graph and adds the definition of the function into the
default graph. Because the addition of the function into the graph
is deferred, the decorator can be used anywhere in the program.
+
+ Definitions of functions are frozen in a graph as soon as the graph is used to
+ create a session. Therefore, nodes using the function must be created in the
+ graph before the corresponding session is created.
Example, but also see the [How To on functions](link_needed).