#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersFixture.hpp"
#include "../TfLiteParser.hpp"
#include <string>
#include <iostream>
Go to the source code of this file.
◆ BOOST_FIXTURE_TEST_CASE() [1/8]
BOOST_FIXTURE_TEST_CASE |
( |
ParseAxisOneSplitTwoFloat32 |
, |
|
|
SimpleSplitFixtureFloat32 |
|
|
) |
| |
Definition at line 111 of file Split.cpp.
114 RunTest<4, armnn::DataType::Float32>(
116 { {
"inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f,
117 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f } } },
118 { {
"outputTensor1", { 1.0f, 2.0f, 3.0f, 4.0f, 9.0f, 10.0f, 11.0f, 12.0f } },
119 {
"outputTensor2", { 5.0f, 6.0f, 7.0f, 8.0f, 13.0f, 14.0f, 15.0f, 16.0f } } });
◆ BOOST_FIXTURE_TEST_CASE() [2/8]
BOOST_FIXTURE_TEST_CASE |
( |
ParseAxisThreeSplitTwoFloat32 |
, |
|
|
SimpleSplitAxisThreeFixtureFloat32 |
|
|
) |
| |
Definition at line 129 of file Split.cpp.
131 RunTest<4, armnn::DataType::Float32>(
133 { {
"inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f,
134 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f } } },
135 { {
"outputTensor1", { 1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f } },
136 {
"outputTensor2", { 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f } } } );
◆ BOOST_FIXTURE_TEST_CASE() [3/8]
BOOST_FIXTURE_TEST_CASE |
( |
SimpleSplit2DFloat32 |
, |
|
|
SimpleSplit2DFixtureFloat32 |
|
|
) |
| |
Definition at line 146 of file Split.cpp.
148 RunTest<2, armnn::DataType::Float32>(
150 { {
"inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f } } },
151 { {
"outputTensor1", { 1.0f, 2.0f, 3.0f, 4.0f } },
152 {
"outputTensor2", { 5.0f, 6.0f, 7.0f, 8.0f } } } );
◆ BOOST_FIXTURE_TEST_CASE() [4/8]
BOOST_FIXTURE_TEST_CASE |
( |
SimpleSplit3DFloat32 |
, |
|
|
SimpleSplit3DFixtureFloat32 |
|
|
) |
| |
Definition at line 162 of file Split.cpp.
164 RunTest<3, armnn::DataType::Float32>(
166 { {
"inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f,
167 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f } } },
168 { {
"outputTensor1", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f } },
169 {
"outputTensor2", { 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f } } } );
◆ BOOST_FIXTURE_TEST_CASE() [5/8]
BOOST_FIXTURE_TEST_CASE |
( |
ParseAxisOneSplitTwoUint8 |
, |
|
|
SimpleSplitFixtureUint8 |
|
|
) |
| |
Definition at line 179 of file Split.cpp.
182 RunTest<4, armnn::DataType::QAsymmU8>(
184 { {
"inputTensor", { 1, 2, 3, 4, 5, 6, 7, 8,
185 9, 10, 11, 12, 13, 14, 15, 16 } } },
186 { {
"outputTensor1", { 1, 2, 3, 4, 9, 10, 11, 12 } },
187 {
"outputTensor2", { 5, 6, 7, 8, 13, 14, 15, 16 } } });
◆ BOOST_FIXTURE_TEST_CASE() [6/8]
BOOST_FIXTURE_TEST_CASE |
( |
ParseAxisThreeSplitTwoUint8 |
, |
|
|
SimpleSplitAxisThreeFixtureUint8 |
|
|
) |
| |
Definition at line 197 of file Split.cpp.
199 RunTest<4, armnn::DataType::QAsymmU8>(
201 { {
"inputTensor", { 1, 2, 3, 4, 5, 6, 7, 8,
202 9, 10, 11, 12, 13, 14, 15, 16 } } },
203 { {
"outputTensor1", { 1, 3, 5, 7, 9, 11, 13, 15 } },
204 {
"outputTensor2", { 2, 4, 6, 8, 10, 12, 14, 16 } } } );
◆ BOOST_FIXTURE_TEST_CASE() [7/8]
BOOST_FIXTURE_TEST_CASE |
( |
SimpleSplit2DUint8 |
, |
|
|
SimpleSplit2DFixtureUint8 |
|
|
) |
| |
Definition at line 214 of file Split.cpp.
216 RunTest<2, armnn::DataType::QAsymmU8>(
218 { {
"inputTensor", { 1, 2, 3, 4, 5, 6, 7, 8 } } },
219 { {
"outputTensor1", { 1, 2, 3, 4 } },
220 {
"outputTensor2", { 5, 6, 7, 8 } } } );
◆ BOOST_FIXTURE_TEST_CASE() [8/8]
BOOST_FIXTURE_TEST_CASE |
( |
SimpleSplit3DUint8 |
, |
|
|
SimpleSplit3DFixtureUint8 |
|
|
) |
| |
Definition at line 230 of file Split.cpp.
References BOOST_AUTO_TEST_SUITE_END().
232 RunTest<3, armnn::DataType::QAsymmU8>(
234 { {
"inputTensor", { 1, 2, 3, 4, 5, 6, 7, 8,
235 9, 10, 11, 12, 13, 14, 15, 16 } } },
236 { {
"outputTensor1", { 1, 2, 3, 4, 5, 6, 7, 8 } },
237 {
"outputTensor2", { 9, 10, 11, 12, 13, 14, 15, 16 } } } );