OnnxGetOutputTypeInfo

Get the description of the output type from the model.

bool  OnnxGetOutputTypeInfo(
   long           onnx_handle,  // ONNX session handle
   long           index,        // parameter index
   OnnxTypeInfo&  typeinfo      // parameter type description
   );

Parameters

onnx_handle

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

index

[in]  Index of the output parameter, starting with 0.

typeinfo

[out]  The OnnxTypeInfo structure that describes the type of the output parameter.

Return Value

Returns true on success; otherwise returns false. To get the error code, call the GetLastError function.