fix a typo
PiperOrigin-RevId: 311043957 Change-Id: I7a82832032f2dd664bf4852446ae5ba7b82ff203
This commit is contained in:
parent
cf4fb9ed5e
commit
0ba495f24a
tensorflow/python/autograph/g3doc/reference
@ -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`.
|
||||
|
@ -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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user