aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/docs_src/guide/eager.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/tensorflow/docs_src/guide/eager.md b/tensorflow/docs_src/guide/eager.md
index b2bc3273b4..babdb1db09 100644
--- a/tensorflow/docs_src/guide/eager.md
+++ b/tensorflow/docs_src/guide/eager.md
@@ -193,8 +193,7 @@ class MNISTModel(tf.keras.Model):
def call(self, input):
"""Run the model."""
result = self.dense1(input)
- result = self.dense2(result)
- result = self.dense2(result) # reuse variables from dense2 layer
+ result = self.dense2(result) # reuse variables from dense1 layer
return result
model = MNISTModel()