Backends/SiaNet.Backend.MxNet/Interop/MXNet/CApi.cs
/// <summary>
/// Load list of narray from the file.
/// </summary>
/// <param name="fname">name of the file.</param>
/// <param name="out_size">number of narray loaded.</param>
/// <param name="out_arr">head of the returning narray handles.</param>
/// <param name="out_name_size">size of output name arrray.</param>
/// <param name="out_names">the names of returning NDArrays, can be NULL</param>
/// <returns>0 when success, -1 when failure happens</returns>
Load list of narray from the file.
Load list of narray from the file .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXNDArrayLoad([MarshalAs(UnmanagedType.LPStr)] string fname,
                                               out mx_uint out_size,
                                               out System.IntPtr out_arr,
                                               out mx_uint out_name_size,
                                               out System.IntPtr out_names);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXNDArrayLoad ( [ MarshalAs ( UnmanagedType . LPStr ) ] string fname , out mx_uint out_size , out System . IntPtr out_arr , out mx_uint out_name_size , out System . IntPtr out_names ) ;
Load list of narray from the file.
Load list of narray from the file .
0 when success, -1 when failure happens
0 when success - 1 when failure happens
string
[MarshalAs(UnmanagedType.LPStr)]
mx_uint
out
System.IntPtr
out
fname
name of the file.
name of the file .
out_size
number of narray loaded.
number of narray loaded .
out_arr
head of the returning narray handles.
head of the returning narray handles .
out_name_size
size of output name arrray.
size of output name arrray .
out_names
the names of returning NDArrays, can be NULL
the names of returning NDArrays can be NULL