Backends/SiaNet.Backend.MxNet/Interop/MXNet/CApi.cs
/// <summary>
/// Slice the NDArray along axis 0.
/// </summary>
/// <param name="handle">the handle to the NDArray</param>
/// <param name="slice_begin">The beginning index of slice</param>
/// <param name="slice_end">The ending index of slice</param>
/// <param name="out">The NDArrayHandle of sliced NDArray</param>
/// <returns>0 when success, -1 when failure happens</returns>
Slice the NDArray along axis 0.
Slice the NDArray along axis 0 .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXNDArraySlice(NDArrayHandle handle,
                                                mx_uint slice_begin,
                                                mx_uint slice_end,
                                                out NDArrayHandle @out);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXNDArraySlice ( NDArrayHandle handle , mx_uint slice_begin , mx_uint slice_end , out NDArrayHandle @out ) ;
Slice the NDArray along axis 0.
Slice the NDArray along axis 0 .
0 when success, -1 when failure happens
0 when success - 1 when failure happens
handle
NDArrayHandle
the handle to the NDArray
the handle to the NDArray
slice_begin
mx_uint
The beginning index of slice
The beginning index of slice
slice_end
mx_uint
The ending index of slice
The ending index of slice
NDArrayHandle
out
out
The NDArrayHandle of sliced NDArray
The NDArrayHandle of sliced NDArray