parameters: (shape)
return_statement: return _Broadcaster(shape, shape, layers)
docstring: Gets a Broadcaster for two identical shapes.
docstring_summary: Gets a Broadcaster for two identical shapes.
docstring_tokens: Gets a Broadcaster for two identical shapes .
function: def _get_identity_broadcaster(shape):
    """Gets a Broadcaster for two identical shapes."""
    if shape.rank is None:
      raise ValueError("Shape must have a defined rank")
    layers = [
        _LayerBroadcaster.get_identity_broadcaster(
            shape._num_slices_in_dimension(i)) for i in range(shape.rank)  # pylint: disable=protected-access
    ]
    return _Broadcaster(shape, shape, layers)
function_tokens: def _get_identity_broadcaster ( shape ) : if shape . rank is None : raise ValueError ( "Shape must have a defined rank" ) layers = [ _LayerBroadcaster . get_identity_broadcaster ( shape . _num_slices_in_dimension ( i ) ) for i in range ( shape . rank ) # pylint: disable=protected-access ] return _Broadcaster ( shape , shape , layers )