Skip to content

Commit

Permalink
updated batch_jacobian example that was throwing
Browse files Browse the repository at this point in the history
updated batch_jacobian example that was throwing a warning
  • Loading branch information
jvishnuvardhan committed May 20, 2019
1 parent 53ea5d0 commit 5436bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/python/eager/backprop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ def batch_jacobian(self,
```python
with tf.GradientTape() as g:
x = tf.constant([[1, 2], [3, 4]], dtype=tf.float32)
x = tf.constant([[1., 2.], [3., 4.]], dtype=tf.float32)
g.watch(x)
y = x * x
batch_jacobian = g.batch_jacobian(y, x)
Expand Down

0 comments on commit 5436bd4

Please sign in to comment.