Backends/SiaNet.Backend.MxNet/Interop/MXNet/CApi.cs
/// <summary>
/// Save list of narray into the file.
/// </summary>
/// <param name="fname">name of the file.</param>
/// <param name="num_args">number of arguments to save.</param>
/// <param name="args">the array of NDArrayHandles to be saved.</param>
/// <param name="keys">the name of the NDArray, optional, can be NULL</param>
/// <returns>0 when success, -1 when failure happens</returns>
Save list of narray into the file.
Save list of narray into the file .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXNDArraySave([MarshalAs(UnmanagedType.LPStr)]string fname,
                                               mx_uint num_args,
                                               NDArrayHandle[] args,
                                               [In][MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] keys);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXNDArraySave ( [ MarshalAs ( UnmanagedType . LPStr ) ] string fname , mx_uint num_args , NDArrayHandle [ ] args , [ In ] [ MarshalAs ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPStr ) ] string [ ] keys ) ;
Save list of narray into the file.
Save list of narray into the file .
0 when success, -1 when failure happens
0 when success - 1 when failure happens
string
[MarshalAs(UnmanagedType.LPStr)]
num_args
mx_uint
number of arguments to save.
number of arguments to save .
args
NDArrayHandle[]
the array of NDArrayHandles to be saved.
the array of NDArrayHandles to be saved .
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)]
[In]
fname
name of the file.
name of the file .
keys
the name of the NDArray, optional, can be NULL
the name of the NDArray optional can be NULL