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

Function CompareOutputShape

delegate/test/TestUtils.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void CompareOutputShape(const std::vector<int32_t>& tfLiteDelegateShape,
112 const std::vector<int32_t>& armnnDelegateShape,
113 const std::vector<int32_t>& expectedOutputShape)
114{
115 CHECK(expectedOutputShape.size() == tfLiteDelegateShape.size());
116 CHECK(expectedOutputShape.size() == armnnDelegateShape.size());
117
118 for (size_t i = 0; i < expectedOutputShape.size(); i++)
119 {
120 CHECK(expectedOutputShape[i] == armnnDelegateShape[i]);
121 CHECK(tfLiteDelegateShape[i] == expectedOutputShape[i]);
122 CHECK(tfLiteDelegateShape[i] == armnnDelegateShape[i]);
123 }
124}
125
126} // namespace armnnDelegate

Callers 15

RedefineTestFunction · 0.85
Pooling2dTestFunction · 0.85
ArgMinMaxTestFunction · 0.85
PreluTestFunction · 0.85
UnpackTestFunction · 0.85
SoftmaxTestFunction · 0.85
PadTestFunction · 0.85
StridedSliceTestImplFunction · 0.85
ConvolutionTestFunction · 0.85
Convolution3dTestFunction · 0.85
TransposeConvTestFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected