Google I/O returns May 18-20! Reserve space and build your schedule Register now

tf.keras.backend.gradients

TensorFlow 1 version View source on GitHub

Returns the gradients of loss w.r.t. variables.

loss Scalar tensor to minimize.
variables List of variables.

A gradients tensor.