ArmNN
 20.02
DeserializeActivation.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 (ActivationReluQuantisedAsymm8, SimpleActivationFixture)
 
 BOOST_FIXTURE_TEST_CASE (ActivationReluFloat32, SimpleActivationFixture2)
 
 BOOST_FIXTURE_TEST_CASE (ActivationBoundedReluQuantisedAsymm8, SimpleActivationFixture3)
 
 BOOST_FIXTURE_TEST_CASE (ActivationBoundedReluFloat32, SimpleActivationFixture4)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( ActivationReluQuantisedAsymm8  ,
SimpleActivationFixture   
)

Definition at line 145 of file DeserializeActivation.cpp.

146 {
147  RunTest<4, armnn::DataType::QAsymmU8>(
148  0,
149  {{"InputLayer", {10, 0, 2, 0}}},
150  {{"OutputLayer", {10, 0, 2, 0}}});
151 }

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( ActivationReluFloat32  ,
SimpleActivationFixture2   
)

Definition at line 153 of file DeserializeActivation.cpp.

154 {
155  RunTest<4, armnn::DataType::Float32>(
156  0,
157  {{"InputLayer", {111, -85, 226, 3}}},
158  {{"OutputLayer", {111, 0, 226, 3}}});
159 }

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( ActivationBoundedReluQuantisedAsymm8  ,
SimpleActivationFixture3   
)

Definition at line 162 of file DeserializeActivation.cpp.

163 {
164  RunTest<4, armnn::DataType::QAsymmU8>(
165  0,
166  {{"InputLayer", {10, 0, 2, 0}}},
167  {{"OutputLayer", {5, 0, 2, 0}}});
168 }

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( ActivationBoundedReluFloat32  ,
SimpleActivationFixture4   
)

Definition at line 170 of file DeserializeActivation.cpp.

References BOOST_AUTO_TEST_SUITE_END().

171 {
172  RunTest<4, armnn::DataType::Float32>(
173  0,
174  {{"InputLayer", {111, -85, 226, 3}}},
175  {{"OutputLayer", {5, 0, 5, 3}}});
176 }