Returns the gradients of loss w.r.t. variables.
loss
variables
Compat aliases for migration
See Migration guide for more details.
tf.compat.v1.keras.backend.gradients, tf.compat.v2.keras.backend.gradients
tf.compat.v1.keras.backend.gradients
tf.compat.v2.keras.backend.gradients
tf.keras.backend.gradients( loss, variables )
A gradients tensor.