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

Method GetFactory

src/backends/backendsCommon/TensorHandleFactoryRegistry.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39ITensorHandleFactory* TensorHandleFactoryRegistry::GetFactory(ITensorHandleFactory::FactoryId id) const
40{
41 for (auto& factory : m_Factories)
42 {
43 if (factory->GetId() == id)
44 {
45 return factory.get();
46 }
47 }
48
49 return nullptr;
50}
51
52ITensorHandleFactory* TensorHandleFactoryRegistry::GetFactory(ITensorHandleFactory::FactoryId id,
53 MemorySource memSource) const

Calls 3

GetIdMethod · 0.80
getMethod · 0.45
GetImportFlagsMethod · 0.45