Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5df66e7

Browse files
committed
Move eager note
1 parent 6e2eac3 commit 5df66e7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

samples/core/guide/autograph.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@
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:",
174-
"",
175-
"Important: The converted code will _work_ directly in eager mode. But it runs as an eager-python function. To run in-graph use explicit graphs, as in this doc, or use `tf.contrib.eager.defun`."
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:"
176174
]
177175
},
178176
{
@@ -193,6 +191,16 @@
193191
"execution_count": 0,
194192
"outputs": []
195193
},
194+
{
195+
"metadata": {
196+
"id": "WR4lG3hsuWQT",
197+
"colab_type": "text"
198+
},
199+
"cell_type": "markdown",
200+
"source": [
201+
"Note: AutoGraph converted code runs in eager execution as an eager-Python function. To run in-graph, use explicit graphs (as this notebook uses) or use `tf.contrib.eager.defun`."
202+
]
203+
},
196204
{
197205
"metadata": {
198206
"id": "ohbSnA79mcJV",
@@ -933,4 +941,4 @@
933941
"outputs": []
934942
}
935943
]
936-
}
944+
}

0 commit comments

Comments
 (0)