Backends/SiaNet.Backend.MxNet/Interop/MXNet/CPredictApi.cs
/// <summary>
/// Create a NDArray List by loading from ndarray file. This can be used to load mean image file.
/// </summary>
/// <param name="nd_file_bytes">The byte contents of nd file to be loaded.</param>
/// <param name="nd_file_size">The size of the nd file to be loaded.</param>
/// <param name="out">The out put NDListHandle</param>
/// <param name="out_length">Length of the list.</param>
/// <returns>return 0 when success, -1 when failure.</returns>
Create a NDArray List by loading from ndarray file. This can be used to load mean image file.
Create a NDArray List by loading from ndarray file . This can be used to load mean image file .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXNDListCreate(byte[] nd_file_bytes,
                                                int nd_file_size,
                                                [Out] out IntPtr @out,
                                                [Out] out mx_uint out_length);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXNDListCreate ( byte [ ] nd_file_bytes , int nd_file_size , [ Out ] out IntPtr @out , [ Out ] out mx_uint out_length ) ;
Create a NDArray List by loading from ndarray file.
Create a NDArray List by loading from ndarray file .
return 0 when success, -1 when failure.
return 0 when success - 1 when failure .
nd_file_bytes
byte[]
The byte contents of nd file to be loaded.
The byte contents of nd file to be loaded .
nd_file_size
int
The size of the nd file to be loaded.
The size of the nd file to be loaded .
out
[Out]
The out put NDListHandle
The out put NDListHandle
out_length
Length of the list.
Length of the list .