parameters: ()
return_statement: return _get_per_thread_mode().cross_replica_context
docstring: Returns the current tf.distribute.Strategy if in a cross-replica context.
  
    DEPRECATED: Please use `in_cross_replica_context()` and
    `get_strategy()` instead.
  
    Returns:
      Returns the current `tf.distribute.Strategy` object in a cross-replica
      context, or `None`.
  
      Exactly one of `get_replica_context()` and `get_cross_replica_context()`
      will return `None` in a particular block.
docstring_summary: Returns the current tf.distribute.Strategy if in a cross-replica context.
docstring_tokens: Returns the current tf . distribute . Strategy if in a cross - replica context .
function: def get_cross_replica_context():
    """Returns the current tf.distribute.Strategy if in a cross-replica context.
  
    DEPRECATED: Please use `in_cross_replica_context()` and
    `get_strategy()` instead.
  
    Returns:
      Returns the current `tf.distribute.Strategy` object in a cross-replica
      context, or `None`.
  
      Exactly one of `get_replica_context()` and `get_cross_replica_context()`
      will return `None` in a particular block.
    """
    return _get_per_thread_mode().cross_replica_context
function_tokens: def get_cross_replica_context ( ) : return _get_per_thread_mode ( ) . cross_replica_context