ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


View source on GitHub

Returns a list of variables for the given tf.compat.v1.train.Optimizer.

Equivalent to optimizer.variables().

optimizer An instance of tf.compat.v1.train.Optimizer which has created variables (typically after a call to Optimizer.minimize).

A list of variables which have been created by the Optimizer.