OnnxGetOutputName

Get the name of a model's output by index.

string  OnnxGetOutputName(
   long   onnx_handle,  // ONNX session handle
   long   index         // parameter index
   );

Parameters

onnx_handle

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

index

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

Return Value

Returns the name of the output parameter on success; otherwise returns NULL. To get the error code, call the GetLastError function.