OnnxRelease

Close an ONNX session.

bool  OnnxRelease(
   long   onnx_handle  // ONNX session handle
   );

Parameters

onnx_handle

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

Return Value

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