#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersFixture.hpp"
#include "../TfLiteParser.hpp"
#include <sstream>
Go to the source code of this file.
◆ BOOST_FIXTURE_TEST_CASE() [1/5]
BOOST_FIXTURE_TEST_CASE |
( |
ParseSimpleConv2D |
, |
|
|
SimpleConv2DFixture |
|
|
) |
| |
Definition at line 90 of file Conv2D.cpp.
92 RunTest<4, armnn::DataType::QAsymmU8>(
◆ BOOST_FIXTURE_TEST_CASE() [2/5]
BOOST_FIXTURE_TEST_CASE |
( |
ParseConv2DWithBias |
, |
|
|
SimpleConv2DWithBiasesFixture |
|
|
) |
| |
Definition at line 220 of file Conv2D.cpp.
222 RunTest<4, armnn::DataType::QAsymmU8>(
230 (1*2 + 2*1 + 3*0 + 4*6 + 10)/2,
231 (2*2 + 0*1 + 4*0 + 0*6 + 10)/2,
232 (3*2 + 4*1 + 0*0 + 0*6 + 10)/2,
233 (4*2 + 0*1 + 0*0 + 0*6 + 10)/2
◆ BOOST_FIXTURE_TEST_CASE() [3/5]
BOOST_FIXTURE_TEST_CASE |
( |
ParseConv2D_112x112_out |
, |
|
|
Conv2DShapeTestFixture |
|
|
) |
| |
◆ BOOST_FIXTURE_TEST_CASE() [4/5]
BOOST_FIXTURE_TEST_CASE |
( |
ParseConv2DAndReluWithBias |
, |
|
|
ReluConv2DWithBiasesFixture |
|
|
) |
| |
Definition at line 287 of file Conv2D.cpp.
290 uint8_t outZero = 20;
293 RunTest<4, armnn::DataType::QAsymmU8>(
305 std::max(outZero, static_cast<uint8_t>((1*(2-fz) + 2*(1-fz) + 4*(0-fz) + 8*(6-fz) + bias)/2 + outZero)),
306 std::max(outZero, static_cast<uint8_t>((2*(2-fz) + 0*(1-fz) + 8*(0-fz) + 0*(6-fz) + bias)/2 + outZero)),
307 std::max(outZero, static_cast<uint8_t>((4*(2-fz) + 8*(1-fz) + 0*(0-fz) + 0*(6-fz) + bias)/2 + outZero)),
308 std::max(outZero, static_cast<uint8_t>((8*(2-fz) + 0*(1-fz) + 0*(0-fz) + 0*(6-fz) + bias)/2 + outZero))
◆ BOOST_FIXTURE_TEST_CASE() [5/5]
BOOST_FIXTURE_TEST_CASE |
( |
ParseConv2DAndRelu6WithBias |
, |
|
|
Relu6Conv2DWithBiasesFixture |
|
|
) |
| |
Definition at line 330 of file Conv2D.cpp.
References BOOST_AUTO_TEST_SUITE_END().
332 uint8_t relu6Min = 6 / 2;
334 RunTest<4, armnn::DataType::QAsymmU8>(
344 std::min(relu6Min, static_cast<uint8_t>((1*2 + 2*1 + 4*0 + 1*6)/2)),
345 std::min(relu6Min, static_cast<uint8_t>((2*2 + 0*1 + 1*0 + 0*6)/2)),
346 std::min(relu6Min, static_cast<uint8_t>((4*2 + 1*1 + 0*0 + 0*6)/2)),
347 std::min(relu6Min, static_cast<uint8_t>((1*2 + 0*1 + 0*0 + 0*6)/2))