tf.compat.v1.trainable_variables

View source on GitHub

Returns all variables created with trainable=True.

tf.compat.v1.trainable_variables(
    scope=None
)

When passed trainable=True, the Variable() constructor automatically adds new variables to the graph collection GraphKeys.TRAINABLE_VARIABLES. This convenience function returns the contents of that collection.

Args:

Returns:

A list of Variable objects.