TensorFlow 2.0 Beta is available Learn more

tf.train.get_or_create_global_step

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

Aliases:

  • tf.compat.v1.train.get_or_create_global_step
  • tf.train.get_or_create_global_step
tf.train.get_or_create_global_step(graph=None)
View source on GitHub

Args:

  • graph: The graph in which to create the global step tensor. If missing, use default graph.

Returns:

The global step tensor.