Backends/SiaNet.Backend.MxNet/Interop/MXNet/CApi.cs
/// <summary>
/// Get the detailed information about atomic symbol.
/// </summary>
/// <param name="creator">the AtomicSymbolCreator.</param>
/// <param name="name">The returned name of the creator.</param>
/// <param name="description">The returned description of the symbol.</param>
/// <param name="num_args">Number of arguments.</param>
/// <param name="arg_names">Name of the arguments.</param>
/// <param name="arg_type_infos">Type informations about the arguments.</param>
/// <param name="arg_descriptions">Description information about the arguments.</param>
/// <param name="key_var_num_args">
/// The keyword argument for specifying variable number of arguments.
/// <para>When this parameter has non-zero length, the function allows variable number of positional arguments, and will need the caller to pass it in in MXSymbolCreateAtomicSymbol, With key = key_var_num_args, and value = number of positional arguments.</para>
/// </param>
/// <param name="return_type">Return type of the function, can be Symbol or Symbol[]</param>
/// <returns>0 when success, -1 when failure happens</returns>
Get the detailed information about atomic symbol.
Get the detailed information about atomic symbol .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXSymbolGetAtomicSymbolInfo(AtomicSymbolCreator creator,
                                                             out AtomicSymbolCreator name,
                                                             out AtomicSymbolCreator description,
                                                             out mx_uint num_args,
                                                             out AtomicSymbolCreator[] arg_names,
                                                             out AtomicSymbolCreator[] arg_type_infos,
                                                             out AtomicSymbolCreator[] arg_descriptions,
                                                             out AtomicSymbolCreator key_var_num_args,
                                                             out AtomicSymbolCreator return_type);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXSymbolGetAtomicSymbolInfo ( AtomicSymbolCreator creator , out AtomicSymbolCreator name , out AtomicSymbolCreator description , out mx_uint num_args , out AtomicSymbolCreator [ ] arg_names , out AtomicSymbolCreator [ ] arg_type_infos , out AtomicSymbolCreator [ ] arg_descriptions , out AtomicSymbolCreator key_var_num_args , out AtomicSymbolCreator return_type ) ;
Get the detailed information about atomic symbol.
Get the detailed information about atomic symbol .
0 when success, -1 when failure happens
0 when success - 1 when failure happens
creator
AtomicSymbolCreator
None
AtomicSymbolCreator
out
mx_uint
out
AtomicSymbolCreator[]
out
name
The returned name of the creator.
The returned name of the creator .
description
The returned description of the symbol.
The returned description of the symbol .
num_args
Number of arguments.
Number of arguments .
arg_names
Name of the arguments.
Name of the arguments .
arg_type_infos
Type informations about the arguments.
Type informations about the arguments .
arg_descriptions
Description information about the arguments.
Description information about the arguments .
key_var_num_args
The keyword argument for specifying variable number of arguments.
When this parameter has non-zero length, the function allows variable number of positional arguments, and will need the caller to pass it in in MXSymbolCreateAtomicSymbol, With key = key_var_num_args, and value = number of positional arguments.
The keyword argument for specifying variable number of arguments . When this parameter has non - zero length the function allows variable number of positional arguments and will need the caller to pass it in in MXSymbolCreateAtomicSymbol With key = key_var_num_args and value = number of positional arguments .
return_type
Return type of the function, can be Symbol or Symbol[]
Return type of the function can be Symbol or Symbol []