tf.compat.v1.train.get_or_create_global_step

View source on GitHub

Returns and create (if necessary) the global step tensor.

tf.compat.v1.train.get_or_create_global_step(
    graph=None
)

Args:

Returns:

The global step tensor.