| 156 | } |
| 157 | |
| 158 | unsigned int ComputeWrappedIndex(int index, unsigned int numDimensions) |
| 159 | { |
| 160 | int numDims = armnn::numeric_cast<int>(numDimensions); |
| 161 | int wrappedIndex = index < 0 ? numDims + index : index; |
| 162 | |
| 163 | if (wrappedIndex < 0 || wrappedIndex >= numDims) |
| 164 | { |
| 165 | throw armnn::ParseException("Unable to compute wrapped index"); |
| 166 | } |
| 167 | |
| 168 | return static_cast<unsigned int>(wrappedIndex); |
| 169 | }; |
| 170 | |
| 171 | bool AreAllTensorsSigned32(const std::vector<armnn::TensorInfo>& tensorInfos) |
| 172 | { |
no test coverage detected