OnnxGetOutputCount

Get the number of outputs in an ONNX model.

long  OnnxGetOutputCount(
   long   onnx_handle  // ONNX session handle
   );

Parameters

onnx_handle

[in]  ONNX session object handle created via OnnxCreate or OnnxCreateFromBuffer.

Return Value

Returns the number of output parameters on success; otherwise returns -1. To get the error code, call the GetLastError function.