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

Function CheckOption

tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <fmt/format.h>
16
17bool CheckOption(const cxxopts::ParseResult& result,
18 const char* option)
19{
20 // Check that the given option is valid.
21 if (option == nullptr)
22 {
23 return false;
24 }
25
26 // Check whether 'option' is provided.
27 return ((result.count(option)) ? true : false);
28}
29
30void CheckOptionDependency(const cxxopts::ParseResult& result,
31 const char* option,

Callers 1

CheckOptionDependencyFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected