ArmNN
 20.02
MaxPool2D.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "armnnTfLiteParser/ITfLiteParser.hpp"
#include "ParserFlatbuffersFixture.hpp"

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (MaxPoolLiteUint1DOutput, MaxPoolLiteFixtureUint1DOutput)
 
 BOOST_FIXTURE_TEST_CASE (MaxPoolLiteFloat1DOutput, MaxPoolLiteFixtureFloat1DOutput)
 
 BOOST_FIXTURE_TEST_CASE (MaxPoolLiteUint2DOutput, MaxPoolLiteFixtureUint2DOutput)
 
 BOOST_FIXTURE_TEST_CASE (MaxPoolIncorrectDataTypeError, MaxPoolLiteFixtureFloat1DOutput)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( MaxPoolLiteUint1DOutput  ,
MaxPoolLiteFixtureUint1DOutput   
)

Definition at line 99 of file MaxPool2D.cpp.

100 {
101  RunTest<4, armnn::DataType::QAsymmU8>(0, { 2, 3, 5, 2 }, { 5 });
102 }

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( MaxPoolLiteFloat1DOutput  ,
MaxPoolLiteFixtureFloat1DOutput   
)

Definition at line 104 of file MaxPool2D.cpp.

105 {
106  RunTest<4, armnn::DataType::Float32>(0, { 2.0f, 3.0f, 5.0f, 2.0f }, { 5.0f });
107 }

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( MaxPoolLiteUint2DOutput  ,
MaxPoolLiteFixtureUint2DOutput   
)

Definition at line 109 of file MaxPool2D.cpp.

110 {
111  RunTest<4, armnn::DataType::QAsymmU8>(
112  0, { 1, 2, 2, 3, 5, 6, 7, 8, 3, 2, 1, 0, 1, 2, 3, 4 }, { 6, 8, 3, 4 });
113 }

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( MaxPoolIncorrectDataTypeError  ,
MaxPoolLiteFixtureFloat1DOutput   
)

Definition at line 115 of file MaxPool2D.cpp.

References BOOST_AUTO_TEST_SUITE_END().

116 {
117  BOOST_CHECK_THROW((RunTest<4, armnn::DataType::QAsymmU8>(0, { 2, 3, 5, 2 }, { 5 })), armnn::Exception);
118 }
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46