diff options
author | Brian Patton <bjp@google.com> | 2018-05-18 08:38:40 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-18 08:41:28 -0700 |
commit | 0423cf3d0c6107f717f24e1913676129011c2f31 (patch) | |
tree | c060d1d1012402d2d16d9e1a6405dff437fab8b2 | |
parent | e451eef91d81ea7642bda594f27e514e5922b73b (diff) |
Update the docstring on function.Defun to reflect current graph/session freezing behavior.
PiperOrigin-RevId: 197150790
-rw-r--r-- | tensorflow/python/framework/function.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/python/framework/function.py b/tensorflow/python/framework/function.py index 6882b44892..0675222016 100644 --- a/tensorflow/python/framework/function.py +++ b/tensorflow/python/framework/function.py @@ -68,9 +68,10 @@ class Defun(object): during the first call to the function. Subsequent function calls will refer to the same set of variables. - 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. + Definitions of functions in a graph are frozen as soon as the graph is used to + create a session. However, new functions and new calls to existing functions + may be added to the graph, with the new functions themselves becoming + immediately frozen. Example, but also see the [How To on functions](link_needed). |