Function reverse

  • Reverses a tensor along a specificed axis.

    Parameters

    • t: Tensor

      the input tensor

    • Optional axis: number | number[]

      (optional) the axis to reverse along

    Returns Tensor

    the reversed tensor