| 20 | } |
| 21 | |
| 22 | unsigned 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 |
no test coverage detected