Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Join a sequence of arrays along a new axis.The axis parameter specifies the index of the new axis in the dimensions of theresult. For example, if axis=0 it will be the first dimension and if axis=-1 itwill be the last dimension.Examples::  x = [1, 2]  y = [3, 4]  stack(x, y) = [[1, 2],                 [3, 4]]  stack(x, y, axis=1) = [[1, 3],                         [2, 4]]
/// </summary>
/// <param name="@out">output NDArray</param>
/// <param name="data">List of arrays to stack</param>
/// <param name="num_args">Number of inputs to be stacked.</param>
/// <param name="axis">The axis in the result array along which the input arrays are stacked.</param>
/// <returns>returns new symbol</returns>
Join a sequence of arrays along a new axis.The axis parameter specifies the index of the new axis in the dimensions of theresult.
Join a sequence of arrays along a new axis . The axis parameter specifies the index of the new axis in the dimensions of theresult .
public static NDArray Stack(NDArray @out,
        NDArray[] data,
        int num_args,
        int axis = 0)
        {
            return new Operator("stack")
            .SetParam("axis", axis)
            .SetParam("num_args", num_args)
            .SetInput(data)
            .Invoke(@out);
        }
public static NDArray Stack ( NDArray @out , NDArray [ ] data , int num_args , int axis = 0 ) { return new Operator ( " " ) . SetParam ( " " , axis ) . SetParam ( " " , num_args ) . SetInput ( data ) . Invoke ( @out ) ; }
Join a sequence of arrays along a new axis.The axis parameter specifies the index of the new axis in the dimensions of theresult.
Join a sequence of arrays along a new axis . The axis parameter specifies the index of the new axis in the dimensions of theresult .
returns new symbol
returns new symbol
@out
NDArray
None
data
NDArray[]
List of arrays to stack
List of arrays to stack
num_args
int
Number of inputs to be stacked.
Number of inputs to be stacked .
axis
int
The axis in the result array along which the input arrays are stacked.
The axis in the result array along which the input arrays are stacked .