ArmNN
 21.02
Reshape.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "armnnOnnxParser/IOnnxParser.hpp"
#include "ParserPrototxtFixture.hpp"

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (ValidReshapeTest, ReshapeValidFixture)
 
 BOOST_FIXTURE_TEST_CASE (ValidRank4ReshapeTest, ReshapeValidRank4Fixture)
 
 BOOST_FIXTURE_TEST_CASE (IncorrectDataTypeReshape, ReshapeInvalidFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( ValidReshapeTest  ,
ReshapeValidFixture   
)

Definition at line 192 of file Reshape.cpp.

193 {
194  RunTest<2>({{"Input", { 0.0f, 1.0f, 2.0f, 3.0f }}}, {{"Output", { 0.0f, 1.0f, 2.0f, 3.0f }}});
195 }

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( ValidRank4ReshapeTest  ,
ReshapeValidRank4Fixture   
)

Definition at line 197 of file Reshape.cpp.

198 {
199  RunTest<2>(
200  {{"Input",
201  {1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
202  1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
203  1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f}}},
204  {{"Output",
205  {1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
206  1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
207  1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f}}});
208 }

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( IncorrectDataTypeReshape  ,
ReshapeInvalidFixture   
)

Definition at line 210 of file Reshape.cpp.

References BOOST_AUTO_TEST_SUITE_END().

211 {
212  BOOST_CHECK_THROW(Setup(), armnn::ParseException);
213 }