Skip to content

Commit 310021b

Browse files
authored
Nit (notebook lint test) in the Better performance with tf.function guide
1 parent ca5f3c7 commit 310021b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/en/guide/function.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"id": "K7scSzLx662f"
273273
},
274274
"source": [
275-
"When we pass arguments of different types into a `Function`, both stages are run:\n"
275+
"When you pass arguments of different types into a `Function`, both stages are run:\n"
276276
]
277277
},
278278
{
@@ -1301,7 +1301,7 @@
13011301
"\n",
13021302
"`Function` creates a new `ConcreteFunction` when called with a new value of a Python argument. However, it does not do that for the Python closure, globals, or nonlocals of that `Function`. If their value changes in between calls to the `Function`, the `Function` will still use the values they had when it was traced. This is different from how regular Python functions work.\n",
13031303
"\n",
1304-
"For that reason, we recommend a functional programming style that uses arguments instead of closing over outer names."
1304+
"For that reason, you should follow a functional programming style that uses arguments instead of closing over outer names."
13051305
]
13061306
},
13071307
{
@@ -1439,7 +1439,7 @@
14391439
"source": [
14401440
"Using the same `Function` to evaluate the updated instance of the model will be buggy since the updated model has the [same cache key](#rules_of_tracing) as the original model.\n",
14411441
"\n",
1442-
"For that reason, we recommend that you write your `Function` to avoid depending on mutable object attributes or create new objects.\n",
1442+
"For that reason, you're recommended to write your `Function` to avoid depending on mutable object attributes or create new objects.\n",
14431443
"\n",
14441444
"If that is not possible, one workaround is to make new `Function`s each time you modify your object to force retracing:"
14451445
]

0 commit comments

Comments
 (0)