parameters: (self, t, lengths)
docstring: Time reverse the provided tensor or list of tensors.
  
      Assumes the top dimension is the time dimension.
  
      Args:
        t: 3D tensor or list of 2D tensors to be reversed
        lengths: 1D tensor of lengths, or `None`
  
      Returns:
        A reversed tensor or list of tensors
docstring_summary: Time reverse the provided tensor or list of tensors.
docstring_tokens: Time reverse the provided tensor or list of tensors .
function: def _reverse(self, t, lengths):
      """Time reverse the provided tensor or list of tensors.
  
      Assumes the top dimension is the time dimension.
  
      Args:
        t: 3D tensor or list of 2D tensors to be reversed
        lengths: 1D tensor of lengths, or `None`
  
      Returns:
        A reversed tensor or list of tensors
      """
      if isinstance(t, list):
        return list(reversed(t))
      else:
        if lengths is None:
          return array_ops.reverse_v2(t, [0])
        else:
          return array_ops.reverse_sequence(t, lengths, 0, 1)
function_tokens: def _reverse ( self , t , lengths ) : if isinstance ( t , list ) : return list ( reversed ( t ) ) else : if lengths is None : return array_ops . reverse_v2 ( t , [ 0 ] ) else : return array_ops . reverse_sequence ( t , lengths , 0 , 1 )