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

Function ParseOptions

include/armnn/BackendOptions.hpp:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296template <typename F>
297void ParseOptions(const std::vector<BackendOptions>& options, BackendId backend, F f)
298{
299 for (auto optionsGroup : options)
300 {
301 if (optionsGroup.GetBackendId() == backend)
302 {
303 for (size_t i=0; i < optionsGroup.GetOptionCount(); i++)
304 {
305 const BackendOptions::BackendOption option = optionsGroup.GetOption(i);
306 f(option.GetName(), option.GetValue());
307 }
308 }
309 }
310}
311
312inline bool ParseBooleanBackendOption(const armnn::BackendOptions::Var& value, bool defaultValue)
313{

Callers

nothing calls this directly

Calls 4

GetOptionCountMethod · 0.80
GetBackendIdMethod · 0.45
GetNameMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected