HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OrtApiBase Struct Reference

The helper interface to get the right version of OrtApi. More...

#include <onnxruntime_c_api.h>

Public Member Functions

const OrtApi *ORT_API_CALLGetApi (uint32_t version) NO_EXCEPTION
 Get a pointer to the requested version of the OrtApi. More...
 
const char *ORT_API_CALLGetVersionString (void) NO_EXCEPTION
 Returns a null terminated string of the version of the Onnxruntime library (eg: "1.8.1") More...
 

Detailed Description

The helper interface to get the right version of OrtApi.

Get a pointer to this structure through OrtGetApiBase

Definition at line 585 of file onnxruntime_c_api.h.

Member Function Documentation

const OrtApi* ORT_API_CALL* OrtApiBase::GetApi ( uint32_t  version)

Get a pointer to the requested version of the OrtApi.

Parameters
[in]versionMust be ORT_API_VERSION
Returns
The OrtApi for the version requested, nullptr will be returned if this version is unsupported, for example when using a runtime older than the version created with this header file.
const char* ORT_API_CALL* OrtApiBase::GetVersionString ( void  )

Returns a null terminated string of the version of the Onnxruntime library (eg: "1.8.1")


The documentation for this struct was generated from the following file: