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

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (ParsePad, SimplePadFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParsePadUint8, Uint8PadFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParsePadInt8, Int8PadFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( ParsePad  ,
SimplePadFixture   
)

Definition at line 96 of file Pad.cpp.

97 {
98  RunTest<2, armnn::DataType::Float32>
99  (0,
100  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f }}},
101  {{ "outputTensor", { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
102  0.0f, 0.0f, 1.0f, 2.0f, 3.0f, 0.0f, 0.0f,
103  0.0f, 0.0f, 4.0f, 5.0f, 6.0f, 0.0f, 0.0f,
104  0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }}});
105 }

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( ParsePadUint8  ,
Uint8PadFixture   
)

Definition at line 114 of file Pad.cpp.

115 {
116  RunTest<2, armnn::DataType::QAsymmU8>
117  (0,
118  {{ "inputTensor", { 1, 2, 3, 4, 5, 6 }}},
119  {{ "outputTensor", { 3, 3, 3, 3, 3, 3, 3,
120  3, 3, 1, 2, 3, 3, 3,
121  3, 3, 4, 5, 6, 3, 3,
122  3, 3, 3, 3, 3, 3, 3 }}});
123 }

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( ParsePadInt8  ,
Int8PadFixture   
)

Definition at line 132 of file Pad.cpp.

References BOOST_AUTO_TEST_SUITE_END().

133 {
134  RunTest<2, armnn::DataType::QAsymmS8>
135  (0,
136  {{ "inputTensor", { 1, -2, 3, 4, 5, -6 }}},
137  {{ "outputTensor", { 3, 3, 3, 3, 3, 3, 3,
138  3, 3, 1, -2, 3, 3, 3,
139  3, 3, 4, 5, -6, 3, 3,
140  3, 3, 3, 3, 3, 3, 3 }}});
141 }