Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Reverses the order of elements along given axis while preserving array shape.Note: reverse and flip are equivalent. We use reverse in the following examples.Examples::  x = [[ 0.,  1.,  2.,  3.,  4.],       [ 5.,  6.,  7.,  8.,  9.]]  reverse(x, axis=0) = [[ 5.,  6.,  7.,  8.,  9.],                        [ 0.,  1.,  2.,  3.,  4.]]  reverse(x, axis=1) = [[ 4.,  3.,  2.,  1.,  0.],                        [ 9.,  8.,  7.,  6.,  5.]]Defined in G:\deeplearn\mxnet\src\operator\tensor\matrix_op.cc:L536
/// </summary>
/// <param name="data">Input data array</param>
/// <param name="axis">The axis which to reverse elements.</param>
/// <returns>returns new symbol</returns>
Reverses the order of elements along given axis while preserving array shape.Note: reverse and flip are equivalent.
Reverses the order of elements along given axis while preserving array shape . Note : reverse and flip are equivalent .
public static NDArray Reverse(NDArray data,
        Shape axis)
        {
            return new Operator("reverse")
            .SetParam("axis", axis)
            .SetInput("data", data)
            .Invoke();
        }
public static NDArray Reverse ( NDArray data , Shape axis ) { return new Operator ( " " ) . SetParam ( " " , axis ) . SetInput ( " " , data ) . Invoke ( ) ; }
Reverses the order of elements along given axis while preserving array shape.Note: reverse and flip are equivalent.
Reverses the order of elements along given axis while preserving array shape . Note : reverse and flip are equivalent .
returns new symbol
returns new symbol
data
NDArray
Input data array
Input data array
axis
Shape
The axis which to reverse elements.
The axis which to reverse elements .