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

Function ParseUnsignedInt

src/backends/neon/NeonBackendModelContext.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22unsigned int ParseUnsignedInt(const armnn::BackendOptions::Var& value, unsigned int defaultValue)
23{
24 if (value.IsUnsignedInt())
25 {
26 return value.AsUnsignedInt();
27 }
28 if (value.IsInt() && value.AsInt() >= 0)
29 {
30 return static_cast<unsigned int>(value.AsInt());
31 }
32 return defaultValue;
33}
34
35// Some downstream Android builds consume ArmNN with a ComputeLibrary revision
36// that does not yet expose runtime ISA masking. Keep the model option compatible

Callers 1

Calls 4

IsUnsignedIntMethod · 0.80
AsUnsignedIntMethod · 0.80
IsIntMethod · 0.80
AsIntMethod · 0.80

Tested by

no test coverage detected