| 4604 | } |
| 4605 | |
| 4606 | unsigned int ComputeWrappedIndex(int idx, unsigned int numDimsIn) |
| 4607 | { |
| 4608 | int numDims = armnn::numeric_cast<int>(numDimsIn); |
| 4609 | int v = idx < 0 ? numDims + idx : idx; |
| 4610 | |
| 4611 | if (v < 0 || v > numDims) |
| 4612 | { |
| 4613 | throw ParseException(fmt::format("Unable to compute index {}", CHECK_LOCATION().AsString())); |
| 4614 | } |
| 4615 | |
| 4616 | return static_cast<unsigned int>(v); |
| 4617 | } |
| 4618 | |
| 4619 | void TfLiteParserImpl::ParseSplitV(size_t subgraphIndex, size_t operatorIndex) |
| 4620 | { |
no test coverage detected