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

Function ComputeWrappedIndex

delegate/common/src/DelegateUtils.hpp:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158unsigned 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
171bool AreAllTensorsSigned32(const std::vector<armnn::TensorInfo>& tensorInfos)
172{

Callers 4

VisitSplitOperatorFunction · 0.50
VisitSplitVOperatorFunction · 0.50
VisitSplitOperatorFunction · 0.50
VisitSplitVOperatorFunction · 0.50

Calls 1

ParseExceptionClass · 0.85

Tested by

no test coverage detected