parameters: (graph=None)
return_statement: return global_step_tensor
docstring: Returns and create (if necessary) the global step tensor.
  
    Args:
      graph: The graph in which to create the global step tensor. If missing, use
        default graph.
  
    Returns:
      The global step tensor.
docstring_summary: Returns and create (if necessary) the global step tensor.
docstring_tokens: Returns and create ( if necessary ) the global step tensor .
function: def get_or_create_global_step(graph=None):
    """Returns and create (if necessary) the global step tensor.
  
    Args:
      graph: The graph in which to create the global step tensor. If missing, use
        default graph.
  
    Returns:
      The global step tensor.
    """
    graph = graph or ops.get_default_graph()
    global_step_tensor = get_global_step(graph)
    if global_step_tensor is None:
      global_step_tensor = create_global_step(graph)
    return global_step_tensor
function_tokens: def get_or_create_global_step ( graph = None ) : graph = graph or ops . get_default_graph ( ) global_step_tensor = get_global_step ( graph ) if global_step_tensor is None : global_step_tensor = create_global_step ( graph ) return global_step_tensor