Backends/SiaNet.Backend.MxNet/Interop/MXNet/CPredictApi.cs
/// <summary>
/// Get the shape of output node. The returned shape_data and shape_ndim is only valid before next call to MXPred function.
/// </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="shape_data">Used to hold pointer to the shape data</param>
/// <param name="shape_ndim">Used to hold shape dimension.</param>
/// <returns>0 when success, -1 when failure.</returns>
Get the shape of output node. The returned shape_data and shape_ndim is only valid before next call to MXPred function.
Get the shape of output node . The returned shape_data and shape_ndim is only valid before next call to MXPred function .
[DllImport(NativeLibrary, CallingConvention = CallingConvention)]
        public static extern int MXPredGetOutputShape(IntPtr handle,
                                                      mx_uint index,
                                                      out IntPtr shape_data,
                                                      out mx_uint shape_ndim);
[ DllImport ( NativeLibrary , CallingConvention = CallingConvention ) ] public static extern int MXPredGetOutputShape ( IntPtr handle , mx_uint index , out IntPtr shape_data , out mx_uint shape_ndim ) ;
Get the shape of output node.
Get the shape of output node .
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 .
IntPtr
out
mx_uint
out
shape_data
Used to hold pointer to the shape data
Used to hold pointer to the shape data
shape_ndim
Used to hold shape dimension.
Used to hold shape dimension .