"...text-generation-inference.git" did not exist on "f9910d13e296989f41e714c43eb60ce051359db3"
Unverified Commit fac62b79 authored by Mark Daoust's avatar Mark Daoust Committed by GitHub
Browse files

Merge pull request #8 from lamberta/mark-autograph

Fix note about eager
parents 6e2eac32 444c2f0c
...@@ -170,9 +170,7 @@ ...@@ -170,9 +170,7 @@
}, },
"cell_type": "markdown", "cell_type": "markdown",
"source": [ "source": [
"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:", "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:"
"",
"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`."
] ]
}, },
{ {
...@@ -193,6 +191,16 @@ ...@@ -193,6 +191,16 @@
"execution_count": 0, "execution_count": 0,
"outputs": [] "outputs": []
}, },
{
"metadata": {
"id": "WR4lG3hsuWQT",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"Note: AutoGraph converted code is designed to run during graph execution. When eager exectuon is enabled, use explicit graphs (as this example shows) or `tf.contrib.eager.defun`."
]
},
{ {
"metadata": { "metadata": {
"id": "ohbSnA79mcJV", "id": "ohbSnA79mcJV",
...@@ -933,4 +941,4 @@ ...@@ -933,4 +941,4 @@
"outputs": [] "outputs": []
} }
] ]
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment