ArmNN
 20.05
DeserializeNormalization.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersSerializeFixture.hpp"
#include "../Deserializer.hpp"
#include <string>
#include <iostream>

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (Float32NormalizationNhwcDataLayout, FloatNhwcLocalBrightnessAcrossNormalizationFixture)
 
 BOOST_FIXTURE_TEST_CASE (Float32NormalizationNchwDataLayout, FloatNchwLocalBrightnessWithinNormalizationFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( Float32NormalizationNhwcDataLayout  ,
FloatNhwcLocalBrightnessAcrossNormalizationFixture   
)

Definition at line 120 of file DeserializeNormalization.cpp.

121 {
122  RunTest<4, armnn::DataType::Float32>(0, { 1.0f, 2.0f, 3.0f, 4.0f,
123  5.0f, 6.0f, 7.0f, 8.0f },
124  { 0.5f, 0.400000006f, 0.300000012f, 0.235294119f,
125  0.192307696f, 0.16216217f, 0.140000001f, 0.123076923f });
126 }

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( Float32NormalizationNchwDataLayout  ,
FloatNchwLocalBrightnessWithinNormalizationFixture   
)

Definition at line 134 of file DeserializeNormalization.cpp.

References BOOST_AUTO_TEST_SUITE_END().

135 {
136  RunTest<4, armnn::DataType::Float32>(0, { 1.0f, 2.0f, 3.0f, 4.0f,
137  5.0f, 6.0f, 7.0f, 8.0f },
138  { 0.0322581f, 0.0645161f, 0.0967742f, 0.1290323f,
139  0.0285714f, 0.0342857f, 0.04f, 0.0457143f });
140 }