Function reverse

  • Reverses a tensor along a specificed axis.

    Returns

    the reversed tensor

    Parameters

    • t: Tensor

      the input tensor

    • Optional axis: number | number[]

      (optional) the axis to reverse along

    Returns Tensor

Generated using TypeDoc