OnnxGetInputCount

Get the number of inputs in an ONNX model.

long  OnnxGetInputCount(
   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 input parameters on success; otherwise returns -1. To get the error code, call the GetLastError function.