diff options
author | 2018-09-17 13:23:58 -0700 | |
---|---|---|
committer | 2018-09-17 13:30:37 -0700 | |
commit | d7b4bf68dc80f1abf90bd6b857f079157028a861 (patch) | |
tree | ea56aab9b446f82d2a0cbc7c1a4206274aee52fe | |
parent | 8ae1021b028e9e6cc1b169ffab4dd186b4d2b472 (diff) |
Add missing `watch` call to GradientTape documentation.
PiperOrigin-RevId: 213326503
-rw-r--r-- | tensorflow/python/eager/backprop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/python/eager/backprop.py b/tensorflow/python/eager/backprop.py index 11336efebb..e6cf9653a8 100644 --- a/tensorflow/python/eager/backprop.py +++ b/tensorflow/python/eager/backprop.py @@ -669,6 +669,7 @@ class GradientTape(object): ```python x = tf.constant(3.0) with tf.GradientTape() as g: + g.watch(x) with tf.GradientTape() as gg: gg.watch(x) y = x * x |