From 0ba495f24a2a093606af3de6f394ed0b000ac5c1 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 11 May 2020 19:32:24 -0700 Subject: [PATCH] fix a typo PiperOrigin-RevId: 311043957 Change-Id: I7a82832032f2dd664bf4852446ae5ba7b82ff203 --- tensorflow/python/autograph/g3doc/reference/control_flow.md | 2 +- tensorflow/python/autograph/g3doc/reference/generated_code.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/autograph/g3doc/reference/control_flow.md b/tensorflow/python/autograph/g3doc/reference/control_flow.md index 79cc0f31450..cf580af7330 100644 --- a/tensorflow/python/autograph/g3doc/reference/control_flow.md +++ b/tensorflow/python/autograph/g3doc/reference/control_flow.md @@ -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`. diff --git a/tensorflow/python/autograph/g3doc/reference/generated_code.md b/tensorflow/python/autograph/g3doc/reference/generated_code.md index b62911b7203..389fa53a065 100644 --- a/tensorflow/python/autograph/g3doc/reference/generated_code.md +++ b/tensorflow/python/autograph/g3doc/reference/generated_code.md @@ -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`