Backends/SiaNet.Backend.MxNet/Interop/MXNet/CPredictApi.cs
/// <summary>
/// Get the output value of prediction.
/// </summary>
/// <param name="handle">The handle of the predictor.</param>
/// <param name="index">The index of output node, set to 0 if there is only one output.</param>
/// <param name="data">User allocated data to hold the output.</param>
/// <param name="size">The size of data array, used for safe checking.</param>
/// <returns>0 when success, -1 when failure.</returns>
Get the output value of prediction.
Get the output value of prediction .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXPredGetOutput(IntPtr handle,
                                                 mx_uint index,
                                                 mx_float[] data,
                                                 mx_uint size);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXPredGetOutput ( IntPtr handle , mx_uint index , mx_float [ ] data , mx_uint size ) ;
Get the output value of prediction.
Get the output value of prediction .
0 when success, -1 when failure.
0 when success - 1 when failure .
handle
IntPtr
The handle of the predictor.
The handle of the predictor .
index
mx_uint
The index of output node, set to 0 if there is only one output.
The index of output node set to 0 if there is only one output .
data
mx_float[]
User allocated data to hold the output.
User allocated data to hold the output .
size
mx_uint
The size of data array, used for safe checking.
The size of data array used for safe checking .