ArmNN
 20.02
DeserializeSubtraction.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 (SubtractionQuantisedAsymm8, SimpleSubtractionFixture)
 
 BOOST_FIXTURE_TEST_CASE (SubtractionFloat32, SimpleSubtractionFixture2)
 
 BOOST_FIXTURE_TEST_CASE (SubtractionBroadcast, SimpleSubtractionFixtureBroadcast)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( SubtractionQuantisedAsymm8  ,
SimpleSubtractionFixture   
)

Definition at line 149 of file DeserializeSubtraction.cpp.

150 {
151  RunTest<2, armnn::DataType::QAsymmU8>(
152  0,
153  {{"inputLayer1", { 4, 5, 6, 7 }},
154  {"inputLayer2", { 3, 2, 1, 0 }}},
155  {{"outputLayer", { 1, 3, 5, 7 }}});
156 }

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( SubtractionFloat32  ,
SimpleSubtractionFixture2   
)

Definition at line 158 of file DeserializeSubtraction.cpp.

159 {
160  RunTest<2, armnn::DataType::Float32>(
161  0,
162  {{"inputLayer1", { 4, 5, 6, 7 }},
163  {"inputLayer2", { 3, 2, 1, 0 }}},
164  {{"outputLayer", { 1, 3, 5, 7 }}});
165 }

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( SubtractionBroadcast  ,
SimpleSubtractionFixtureBroadcast   
)

Definition at line 167 of file DeserializeSubtraction.cpp.

References BOOST_AUTO_TEST_SUITE_END().

168 {
169  RunTest<2, armnn::DataType::Float32>(
170  0,
171  {{"inputLayer1", { 4, 5, 6, 7 }},
172  {"inputLayer2", { 2 }}},
173  {{"outputLayer", { 2, 3, 4, 5 }}});
174 }