fix a typo

PiperOrigin-RevId: 311043957
Change-Id: I7a82832032f2dd664bf4852446ae5ba7b82ff203
This commit is contained in:
A. Unique TensorFlower 2020-05-11 19:32:24 -07:00 committed by TensorFlower Gardener
parent cf4fb9ed5e
commit 0ba495f24a
2 changed files with 2 additions and 2 deletions
tensorflow/python/autograph/g3doc/reference

View File

@ -164,7 +164,7 @@ after if
#### Python values modified in TensorFlow control flow become Tensors
If a symbol is modified in a TensorFlow control flow statement, then it becomes
a `tf.Tensor`, even if it started off as a Python promitive value.
a `tf.Tensor`, even if it started off as a Python primitive value.
For example, the conditional below will run as a `tf.cond` (its condition is a
`tf.Tensor`), which in turn will cause `i` to become a `tf.Tensor`.

View File

@ -66,7 +66,7 @@ print(inspect.getsourcefile(converted_f))
```
`tf.autograph.to_code` is a shortcut to obtain the generated code, and it's
equivalent with calling `inspect.getsource(tf.autograph.to_code(f))`.
equivalent with calling `inspect.getsource(tf.autograph.to_graph(f))`.
#### Recording diagnostic information: `tf.autograph.set_verbosity`