ArmNN
 21.05
TransposeConv.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersFixture.hpp"
#include "../TfLiteParser.hpp"

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (ParseSimpleTransposeConv, SimpleTransposeConvFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseSimpleTransposeConvWithBias, SimpleTransposeConvFixtureWithBias)
 
 BOOST_FIXTURE_TEST_CASE (ParseTransposeConvPerChannel, TransposeConvPerChannelFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( ParseSimpleTransposeConv  ,
SimpleTransposeConvFixture   
)

Definition at line 119 of file TransposeConv.cpp.

120 {
121  RunTest<4, armnn::DataType::QAsymmU8>(
122  0,
123  {
124  1, 2,
125  3, 4
126  },
127  {
128  0, 1, 2,
129  2, 11, 12,
130  6, 20, 16
131  });
132 }

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( ParseSimpleTransposeConvWithBias  ,
SimpleTransposeConvFixtureWithBias   
)

Definition at line 258 of file TransposeConv.cpp.

259 {
260  RunTest<4, armnn::DataType::QAsymmU8>(
261  0,
262  {
263  1, 2,
264  3, 4
265  },
266  {
267  10, 11, 12,
268  12, 21, 22,
269  16, 30, 26
270  });
271 }

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( ParseTransposeConvPerChannel  ,
TransposeConvPerChannelFixture   
)

Definition at line 574 of file TransposeConv.cpp.

References BOOST_AUTO_TEST_SUITE_END().

575 {
576  RunTest<4, armnn::DataType::QAsymmS8>(
577  0,
578  {
579  -11, 40,-26, 11,-28, 8, 0, -8,
580  -10, 34, 47, 0,-33,-14, 28, 35,
581  6,-28,-26, 8, 13, 33,-31,-41,
582  31,-20,-31,-16, 8,-18,-44, 0
583  },
584  {
585  -8,-17, -8, -9,-16, 1, 2,-11,
586  3,-16,-19,-12,-11, -6, -3, -6,
587  -5, -8,-16,-12,-11, -3, -7,-13,
588  -4, 1, -9,-10, -5,-12, -5, -8,
589  2,-25, -5, -6,-20, -7, 2,-21,
590  1, 4, 5,-13,-10,-12, 3, 4,
591  -10,-17,-17, -6, -7, 12,-22,-17,
592  -17, 0, -5,-14,-21,-12, 17,-13,
593  3, -6, -3, -3, -2,-16,-11,-12,
594  -15,-14, -1, -2,-35, 5,-18, 0,
595  -6, 8, 5,-12, 12, 7, -6, -3,
596  11,-28,-28, -3,-18,-29, -5,-13,
597  -12, 11, -2, -5, 6, -9, -6, 7,
598  -9,-11,-14, -2, 12, 5,-21,-23,
599  -4, -4, -6, -6,-21,-25, 0,-18,
600  -26, 10, -7,-13, 3, 39,-39, -4
601  });
602 }