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

Function ParseBool

src/backends/cl/ClBackendModelContext.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11bool ParseBool(const armnn::BackendOptions::Var& value, bool defaultValue)
12{
13 if (value.IsBool())
14 {
15 return value.AsBool();
16 }
17 return defaultValue;
18}
19
20std::string ParseFile(const armnn::BackendOptions::Var& value, std::string defaultValue)
21{

Callers 1

ClBackendModelContextMethod · 0.70

Calls 2

IsBoolMethod · 0.80
AsBoolMethod · 0.80

Tested by

no test coverage detected