Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// Return the element-wise truncated value of the input.The truncated value of the scalar x is the nearest integer i which is closer tozero than x is. In short, the fractional part of the signed number x is discarded.Example::   trunc([-2.1, -1.9, 1.5, 1.9, 2.1]) = [-2., -1.,  1.,  1.,  2.]The storage type of ``trunc`` output depends upon the input storage type:   - trunc(default) = default   - trunc(row_sparse) = row_sparseDefined in G:\deeplearn\mxnet\src\operator\tensor\elemwise_unary_op.cc:L407
/// </summary>
/// <param name="@out">output NDArray</param>
/// <param name="data">The input array.</param>
/// <returns>returns new symbol</returns>
Return the element-wise truncated value of the input.The truncated value of the scalar x is the nearest integer i which is closer tozero than x is.
Return the element - wise truncated value of the input . The truncated value of the scalar x is the nearest integer i which is closer tozero than x is .
public static NDArray Trunc(NDArray @out,
        NDArray data)
        {
            return new Operator("trunc")
            .SetInput("data", data)
            .Invoke(@out);
        }
public static NDArray Trunc ( NDArray @out , NDArray data ) { return new Operator ( " " ) . SetInput ( " " , data ) . Invoke ( @out ) ; }
Return the element-wise truncated value of the input.The truncated value of the scalar x is the nearest integer i which is closer tozero than x is.
Return the element - wise truncated value of the input . The truncated value of the scalar x is the nearest integer i which is closer tozero than x is .
returns new symbol
returns new symbol
@out
NDArray
None
data
NDArray
The input array.
The input array .