ArmNN
 24.08
RefDynamicBackend.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "RefDynamicBackend.hpp"
7 
9 
10 using namespace armnn;
11 
12 const char* GetBackendId()
13 {
14  return RefBackend::GetIdStatic().Get().c_str();
15 }
16 
17 void GetVersion(uint32_t* outMajor, uint32_t* outMinor)
18 {
19  if (!outMajor || !outMinor)
20  {
21  return;
22  }
23 
25 
26  *outMajor = apiVersion.m_Major;
27  *outMinor = apiVersion.m_Minor;
28 }
29 
31 {
32  return new RefBackend();
33 }
armnn::BackendVersion::m_Minor
uint32_t m_Minor
Definition: IBackendInternal.hpp:37
RefDynamicBackend.hpp
armnn::GetVersion
const std::string GetVersion()
Definition: Utils.cpp:81
BackendFactory
void * BackendFactory()
Definition: RefDynamicBackend.cpp:30
armnn::RefBackend::GetIdStatic
static const BackendId & GetIdStatic()
Definition: RefBackend.cpp:22
armnn::RefBackend
Definition: RefBackend.hpp:30
armnn::BackendId::Get
const std::string & Get() const
Definition: BackendId.hpp:138
armnn::IBackendInternal::GetApiVersion
static constexpr BackendVersion GetApiVersion()
Returns the version of the Backend API.
Definition: IBackendInternal.hpp:167
armnn::BackendVersion
Definition: IBackendInternal.hpp:34
RefBackend.hpp
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
GetBackendId
const char * GetBackendId()
Definition: RefDynamicBackend.cpp:12
armnn::BackendVersion::m_Major
uint32_t m_Major
Definition: IBackendInternal.hpp:36