Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Return evenly spaced values within a given interval. Similar to Numpy
/// </summary>
/// <param name="start">Start of interval. The interval includes this value. The default start value is 0.</param>
/// <param name="stop">End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.</param>
/// <param name="step">Spacing between values.</param>
/// <param name="repeat">The repeating time of all elements. E.g repeat=3, the element a will be repeated three times --> a, a, a.</param>
/// <param name="ctx">Context of output, in format [cpu|gpu|cpu_pinned](n).Only used for imperative calls.</param>
/// <param name="dtype">Target data type.</param>
/// <returns>returns new symbol</returns>
Return evenly spaced values within a given interval. Similar to Numpy
Return evenly spaced values within a given interval . Similar to Numpy
public static NDArray Arange(float start,
        float? stop = null,
        float step = 1f,
        int repeat = 1,
        Context ctx = null,
        DType dtype = null)
        {
            if (dtype == null) { dtype = DType.Float32; }
            return new Operator("_arange")
            .SetParam("start", start)
            .SetParam("stop", stop)
            .SetParam("step", step)
            .SetParam("repeat", repeat)
            .SetParam("ctx", ctx)
            .SetParam("dtype", dtype)
            .Invoke();
        }
public static NDArray Arange ( float start , float ? stop = null , float step = 1f , int repeat = 1 , Context ctx = null , DType dtype = null ) { if ( dtype == null ) { dtype = DType . Float32 ; } return new Operator ( " " ) . SetParam ( " " , start ) . SetParam ( " " , stop ) . SetParam ( " " , step ) . SetParam ( " " , repeat ) . SetParam ( " " , ctx ) . SetParam ( " " , dtype ) . Invoke ( ) ; }
Return evenly spaced values within a given interval.
Return evenly spaced values within a given interval .
returns new symbol
returns new symbol
start
float
Start of interval. The interval includes this value. The default start value is 0.
Start of interval . The interval includes this value . The default start value is 0 .
stop
float?
End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
End of interval . The interval does not include this value except in some cases where step is not an integer and floating point round - off affects the length of out .
step
float
Spacing between values.
Spacing between values .
repeat
int
The repeating time of all elements. E.g repeat=3, the element a will be repeated three times --> a, a, a.
The repeating time of all elements . E . g repeat = 3 the element a will be repeated three times -- > a a a .
ctx
Context
Context of output, in format [cpu|gpu|cpu_pinned](n).Only used for imperative calls.
Context of output in format [ cpu|gpu|cpu_pinned ] ( n ) . Only used for imperative calls .
dtype
DType
Target data type.
Target data type .