Backends/SiaNet.Backend.MxNet/Interop/MXNet/CApi.cs
/// <summary>
/// Init an iterator, init with parameters the array size of passed in arguments
/// </summary>
/// <param name="handle">handle of the iterator creator</param>
/// <param name="num_param">number of parameter</param>
/// <param name="keys">parameter keys</param>
/// <param name="vals">parameter values</param>
/// <param name="out">resulting iterator</param>
/// <returns>0 when success, -1 when failure happens</returns>
Init an iterator, init with parameters the array size of passed in arguments
Init an iterator init with parameters the array size of passed in arguments
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXDataIterCreateIter(DataIterCreator handle,
                                                      mx_uint num_param,
                                                      [In][MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] keys,
                                                      [In][MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] vals,
                                                      out DataIterHandle @out);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXDataIterCreateIter ( DataIterCreator handle , mx_uint num_param , [ In ] [ MarshalAs ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPStr ) ] string [ ] keys , [ In ] [ MarshalAs ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPStr ) ] string [ ] vals , out DataIterHandle @out ) ;
Init an iterator, init with parameters the array size of passed in arguments
Init an iterator init with parameters the array size of passed in arguments
0 when success, -1 when failure happens
0 when success - 1 when failure happens
handle
DataIterCreator
handle of the iterator creator
handle of the iterator creator
num_param
mx_uint
number of parameter
number of parameter
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)]
[In]
DataIterHandle
out
keys
None
vals
None
out
None