Google I/O returns May 18-20! Reserve space and build your schedule Register now

tf.compat.v1.train.get_or_create_global_step

View source on GitHub

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

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

The global step tensor.