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

Method RegisterMemoryOptimizerStrategy

src/armnn/BackendRegistry.cpp:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void BackendRegistry::RegisterMemoryOptimizerStrategy(const BackendId& id,
134 std::shared_ptr<IMemoryOptimizerStrategy> strategy)
135{
136 if (m_MemoryOptimizerStrategyMap.find(id) != m_MemoryOptimizerStrategyMap.end())
137 {
138 throw InvalidArgumentException(
139 std::string(id) + " already has an memory optimizer strategy associated with it",
140 CHECK_LOCATION());
141 }
142 m_MemoryOptimizerStrategyMap[id] = strategy;
143}
144
145void BackendRegistry::DeregisterMemoryOptimizerStrategy(const BackendId &id)
146{

Callers 2

RuntimeImplMethod · 0.80

Calls 2

endMethod · 0.45

Tested by

no test coverage detected