ArmNN
 21.02
BatchNorm.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 (ValidBatchNormalizationTest, BatchNormalizationMainFixture)
 
 BOOST_FIXTURE_TEST_CASE (ValidBatchNormalizationBisTest, BatchNormalizationBisFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( ValidBatchNormalizationTest  ,
BatchNormalizationMainFixture   
)

Definition at line 167 of file BatchNorm.cpp.

168 {
169  RunTest<4>({{"Input", {1, 2, 3, 4, 5, 6, 7, 8, 9}}}, // Input data.
170  {{"Output", {-2.8277204f, -2.12079024f, -1.4138602f,
171  -0.7069301f, 0.0f, 0.7069301f,
172  1.4138602f, 2.12079024f, 2.8277204f}}}); // Expected output data.
173 }

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( ValidBatchNormalizationBisTest  ,
BatchNormalizationBisFixture   
)

Definition at line 335 of file BatchNorm.cpp.

References BOOST_AUTO_TEST_SUITE_END().

336 {
337  RunTest<4>({{"Input", {-1, 0.0, 1, 2, 3.0, 4.0}}}, // Input data.
338  {{"Output", {-0.999995f, 0.0, 0.999995f,
339  -0.22474074f, 1.0f, 2.2247407f}}}); // Expected output data.
340 }