parameters: ()
return_statement: return _get_per_thread_mode().strategy
docstring: Returns the current `tf.distribute.Strategy` object.
  
    Typically only used in a cross-replica context:
  
    ```
    if tf.distribute.in_cross_replica_context():
      strategy = tf.distribute.get_strategy()
      ...
    ```
  
    Returns:
      A `tf.distribute.Strategy` object. Inside a `with strategy.scope()` block,
      it returns `strategy`, otherwise it returns the default (single-replica)
      `tf.distribute.Strategy` object.
docstring_summary: Returns the current `tf.distribute.Strategy` object.
docstring_tokens: Returns the current tf . distribute . Strategy object .
function: def get_strategy():
    """Returns the current `tf.distribute.Strategy` object.
  
    Typically only used in a cross-replica context:
  
    ```
    if tf.distribute.in_cross_replica_context():
      strategy = tf.distribute.get_strategy()
      ...
    ```
  
    Returns:
      A `tf.distribute.Strategy` object. Inside a `with strategy.scope()` block,
      it returns `strategy`, otherwise it returns the default (single-replica)
      `tf.distribute.Strategy` object.
    """
    return _get_per_thread_mode().strategy
function_tokens: def get_strategy ( ) : return _get_per_thread_mode ( ) . strategy