Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.train.create_global_step

View source on GitHub

Create global step tensor in graph.

Aliases:

  • tf.compat.v1.train.create_global_step
tf.train.create_global_step(graph=None)

Args:

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

Returns:

Global step tensor.

Raises:

  • ValueError: if global step tensor is already defined.