20.02
|
#include <BackendRegistry.hpp>
Classes | |
struct | StaticRegistryInitializer |
Public Types | |
using | PointerType = IBackendInternalUniquePtr |
using | FactoryFunction = std::function< PointerType()> |
Public Member Functions | |
void | Register (const BackendId &id, FactoryFunction factory) |
bool | IsBackendRegistered (const BackendId &id) const |
FactoryFunction | GetFactory (const BackendId &id) const |
size_t | Size () const |
BackendIdSet | GetBackendIds () const |
std::string | GetBackendIdsAsString () const |
BackendRegistry () | |
virtual | ~BackendRegistry () |
void | Deregister (const BackendId &id) |
Protected Types | |
using | FactoryStorage = std::unordered_map< BackendId, FactoryFunction > |
Static Protected Member Functions | |
static void | Swap (BackendRegistry &instance, FactoryStorage &other) |
For testing only. More... | |
Definition at line 20 of file BackendRegistry.hpp.
using FactoryFunction = std::function<PointerType()> |
Definition at line 24 of file BackendRegistry.hpp.
|
protected |
Definition at line 49 of file BackendRegistry.hpp.
using PointerType = IBackendInternalUniquePtr |
Definition at line 23 of file BackendRegistry.hpp.
|
inline |
Definition at line 33 of file BackendRegistry.hpp.
|
inlinevirtual |
Definition at line 34 of file BackendRegistry.hpp.
void Deregister | ( | const BackendId & | id | ) |
Definition at line 34 of file BackendRegistry.cpp.
References ProfilingService::IncrementCounterValue(), and ProfilingService::Instance().
Referenced by BOOST_AUTO_TEST_CASE(), DynamicBackendUtils::DeregisterDynamicBackends(), BackendRegistry::StaticRegistryInitializer::StaticRegistryInitializer(), and MockBackendInitialiser::~MockBackendInitialiser().
BackendIdSet GetBackendIds | ( | ) | const |
Definition at line 66 of file BackendRegistry.cpp.
Referenced by BackendRegistry::GetBackendIdsAsString().
std::string GetBackendIdsAsString | ( | ) | const |
Definition at line 76 of file BackendRegistry.cpp.
References BackendRegistry::GetBackendIds().
Referenced by InferenceModel< IParser, TDataType >::AddCommandLineOptions(), main(), and RunCsvTest().
BackendRegistry::FactoryFunction GetFactory | ( | const BackendId & | id | ) | const |
Definition at line 48 of file BackendRegistry.cpp.
References CHECK_LOCATION.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::GetILayerSupportByBackendId(), LoadedNetwork::MakeLoadedNetwork(), armnn::Optimize(), and Runtime::Runtime().
bool IsBackendRegistered | ( | const BackendId & | id | ) | const |
Definition at line 43 of file BackendRegistry.cpp.
Referenced by armnn::GetILayerSupportByBackendId(), and DynamicBackendUtils::RegisterDynamicBackendsImpl().
void Register | ( | const BackendId & | id, |
BackendRegistry::FactoryFunction | factory | ||
) |
Definition at line 19 of file BackendRegistry.cpp.
References CHECK_LOCATION, ProfilingService::IncrementCounterValue(), and ProfilingService::Instance().
Referenced by BOOST_AUTO_TEST_CASE(), MockBackendInitialiser::MockBackendInitialiser(), DynamicBackendUtils::RegisterDynamicBackendsImpl(), and BackendRegistry::StaticRegistryInitializer::StaticRegistryInitializer().
size_t Size | ( | ) | const |
Definition at line 61 of file BackendRegistry.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), RegisterSingleDynamicBackendTestImpl(), RuntimeEmptyTestImpl(), and RuntimeInvalidOverridePathTestImpl().
|
staticprotected |
For testing only.
Definition at line 93 of file BackendRegistry.cpp.
References armnn::swap().