keras/src/optimizers/base_optimizer.py/BaseOptimizer/apply_gradients
class BaseOptimizer:    def apply_gradients(self, grads_and_vars):
        grads, trainable_variables = zip(*grads_and_vars)
        self.apply(grads, trainable_variables)
        # Return iterations for compat with tf.keras.
        return self.iterations