mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +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]`.
|
gradient (as calculated by `tf.gradients`) is determined by `f(x)[1]`.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
RuntimeError: tf.gradients is not supported when eager execution is
|
RuntimeError: `tf.gradients` is not supported when eager execution is
|
||||||
enabled. Use tf.GradientTape instead.
|
enabled. Use `tf.GradientTape` instead.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if f is None:
|
if f is None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user