MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetFactoryFunction

Method GetFactoryFunction

src/backends/backendsCommon/DynamicBackend.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78BackendRegistry::FactoryFunction DynamicBackend::GetFactoryFunction()
79{
80 if (m_BackendFactoryFunction == nullptr)
81 {
82 throw RuntimeException("GetFactoryFunction error: invalid function pointer");
83 }
84
85 return [this]() -> IBackendInternalUniquePtr
86 {
87 // This call throws in case of error
88 return CreateBackend();
89 };
90}
91
92template<typename BackendFunctionType>
93BackendFunctionType DynamicBackend::SetFunctionPointer(const std::string& backendFunctionName)

Calls 1

RuntimeExceptionClass · 0.85