ArmNN
 21.02
DeserializePooling2d.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersSerializeFixture.hpp"
#include <armnnDeserializer/IDeserializer.hpp>
#include <string>

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (Pooling2dFloat32Avg, SimpleAvgPooling2dFixture)
 
 BOOST_FIXTURE_TEST_CASE (Pooling2dQuantisedAsymm8Avg, SimpleAvgPooling2dFixture2)
 
 BOOST_FIXTURE_TEST_CASE (Pooling2dFloat32Max, SimpleMaxPooling2dFixture)
 
 BOOST_FIXTURE_TEST_CASE (Pooling2dQuantisedAsymm8Max, SimpleMaxPooling2dFixture2)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( Pooling2dFloat32Avg  ,
SimpleAvgPooling2dFixture   
)

Definition at line 136 of file DeserializePooling2d.cpp.

137 {
138  RunTest<4, armnn::DataType::Float32>(0, { 2, 3, 5, 2 }, { 3 });
139 }

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( Pooling2dQuantisedAsymm8Avg  ,
SimpleAvgPooling2dFixture2   
)

Definition at line 141 of file DeserializePooling2d.cpp.

142 {
143  RunTest<4, armnn::DataType::QAsymmU8>(0,
144  { 20, 40, 60, 80 },
145  { 50 });
146 }

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( Pooling2dFloat32Max  ,
SimpleMaxPooling2dFixture   
)

Definition at line 148 of file DeserializePooling2d.cpp.

149 {
150  RunTest<4, armnn::DataType::Float32>(0, { 2, 5, 5, 2 }, { 5 });
151 }

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( Pooling2dQuantisedAsymm8Max  ,
SimpleMaxPooling2dFixture2   
)

Definition at line 153 of file DeserializePooling2d.cpp.

References BOOST_AUTO_TEST_SUITE_END().

154 {
155  RunTest<4, armnn::DataType::QAsymmU8>(0,
156  { 20, 40, 60, 80 },
157  { 80 });
158 }