ArmNN
 24.08
SampleDynamicBackend.cpp File Reference
Include dependency graph for SampleDynamicBackend.cpp:

Go to the source code of this file.

Namespaces

 sdb
 

Functions

constexpr const char * SampleDynamicBackendId ()
 
const char * GetBackendId ()
 
void GetVersion (uint32_t *outMajor, uint32_t *outMinor)
 
void * BackendFactory ()
 

Function Documentation

◆ BackendFactory()

void* BackendFactory ( )

Definition at line 121 of file SampleDynamicBackend.cpp.

122 {
123  return new sdb::SampleDynamicBackend();
124 }

◆ GetBackendId()

const char* GetBackendId ( )

Definition at line 103 of file SampleDynamicBackend.cpp.

104 {
105  return sdb::SampleDynamicBackend::GetIdStatic().Get().c_str();
106 }

References BackendId::Get(), and RefBackend::GetIdStatic().

◆ GetVersion()

void GetVersion ( uint32_t *  outMajor,
uint32_t *  outMinor 
)

Definition at line 108 of file SampleDynamicBackend.cpp.

109 {
110  if (!outMajor || !outMinor)
111  {
112  return;
113  }
114 
116 
117  *outMajor = apiVersion.m_Major;
118  *outMinor = apiVersion.m_Minor;
119 }

References IBackendInternal::GetApiVersion(), BackendVersion::m_Major, and BackendVersion::m_Minor.

armnn::BackendVersion::m_Minor
uint32_t m_Minor
Definition: IBackendInternal.hpp:37
armnn::IBackendInternal::GetApiVersion
static constexpr BackendVersion GetApiVersion()
Returns the version of the Backend API.
Definition: IBackendInternal.hpp:167
armnn::BackendVersion
Definition: IBackendInternal.hpp:34
armnn::BackendVersion::m_Major
uint32_t m_Major
Definition: IBackendInternal.hpp:36