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

Function SqueezeDims

src/armnnUtils/TensorUtils.cpp:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195std::vector<unsigned int> SqueezeDims(const TensorShape& tensorShape)
196{
197 std::vector<unsigned int> squeezedDims;
198
199 for (unsigned int i = 0; i < tensorShape.GetNumDimensions(); ++i)
200 {
201 if (tensorShape[i] != 1)
202 {
203 squeezedDims.push_back(tensorShape[i]);
204 }
205 }
206 return squeezedDims;
207}
208
209unsigned int GetNumElementsBetween(const TensorShape& shape,
210 const unsigned int firstAxisInclusive,

Callers 1

ValidateAndCopyShapeMethod · 0.85

Calls 2

push_backMethod · 0.80
GetNumDimensionsMethod · 0.45

Tested by

no test coverage detected