mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Update custom_gradient.py
This commit is contained in:
parent
6172fb6de0
commit
83739474b5
|
|
@ -203,8 +203,8 @@ def custom_gradient(f=None):
|
|||
gradient (as calculated by `tf.gradients`) is determined by `f(x)[1]`.
|
||||
|
||||
Raises:
|
||||
RuntimeError: tf.gradients is not supported when eager execution is
|
||||
enabled. Use tf.GradientTape instead.
|
||||
RuntimeError: `tf.gradients` is not supported when eager execution is
|
||||
enabled. Use `tf.GradientTape` instead.
|
||||
"""
|
||||
|
||||
if f is None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user