Skip to content

Commit cf8bd4d

Browse files
authored
Add note about eager-defun compat.
1 parent ff482a0 commit cf8bd4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/core/guide/autograph.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@
170170
},
171171
"cell_type": "markdown",
172172
"source": [
173-
"We'll enable [eager execution](https://www.tensorflow.org/guide/eager) for demonstration purposes, but AutoGraph works in both eager and [graph execution](https://www.tensorflow.org/guide/graphs) environments:"
173+
"We'll enable [eager execution](https://www.tensorflow.org/guide/eager) for demonstration purposes, but AutoGraph works in both eager and [graph execution](https://www.tensorflow.org/guide/graphs) environments:",
174+
"",
175+
"Important: The converted code will _work_ in eager mode. But it runs as an eager-python function. To run the resulting code in a graph wrap in `tf.contrib.eager.defun`."
174176
]
175177
},
176178
{
@@ -931,4 +933,4 @@
931933
"outputs": []
932934
}
933935
]
934-
}
936+
}

0 commit comments

Comments
 (0)