ArmNN
 20.11
SpaceToBatchND.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 (SpaceToBatchNdSimpleTest, SpaceToBatchNDFixtureSimpleTest)
 
 BOOST_FIXTURE_TEST_CASE (SpaceToBatchNdMultipleInputBatchesTest, SpaceToBatchNDFixtureMultipleInputBatchesTest)
 
 BOOST_FIXTURE_TEST_CASE (SpaceToBatchNdPaddingTest, SpaceToBatchNDFixturePaddingTest)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( SpaceToBatchNdSimpleTest  ,
SpaceToBatchNDFixtureSimpleTest   
)

Definition at line 108 of file SpaceToBatchND.cpp.

109 {
110  RunTest<4, armnn::DataType::Float32>
111  (0,
112  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f,
113  5.0f, 6.0f, 7.0f, 8.0f,
114  9.0f, 10.0f, 11.0f, 12.0f,
115  13.0f, 14.0f, 15.0f, 16.0f }}},
116  {{ "outputTensor", { 1.0f, 3.0f, 9.0f, 11.0f,
117  2.0f, 4.0f, 10.0f, 12.0f,
118  5.0f, 7.0f, 13.0f, 15.0f,
119  6.0f, 8.0f, 14.0f, 16.0f }}});
120 }

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( SpaceToBatchNdMultipleInputBatchesTest  ,
SpaceToBatchNDFixtureMultipleInputBatchesTest   
)

Definition at line 131 of file SpaceToBatchND.cpp.

132 {
133  RunTest<4, armnn::DataType::Float32>
134  (0,
135  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f,
136  5.0f, 6.0f, 7.0f, 8.0f,
137  9.0f, 10.0f, 11.0f, 12.0f,
138  13.0f, 14.0f, 15.0f, 16.0f }}},
139  {{ "outputTensor", { 1.0f, 3.0f, 9.0f, 11.0f,
140  2.0f, 4.0f, 10.0f, 12.0f,
141  5.0f, 7.0f, 13.0f, 15.0f,
142  6.0f, 8.0f, 14.0f, 16.0f }}});
143 }

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( SpaceToBatchNdPaddingTest  ,
SpaceToBatchNDFixturePaddingTest   
)

Definition at line 153 of file SpaceToBatchND.cpp.

References BOOST_AUTO_TEST_SUITE_END().

154 {
155  RunTest<4, armnn::DataType::Float32>
156  (0,
157  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f,
158  6.0f, 7.0f, 8.0f, 9.0f, 10.0f }}},
159  {{ "outputTensor", { 0.0f, 0.0f,
160  0.0f, 5.0f,
161 
162  0.0f, 0.0f,
163  0.0f, 6.0f,
164 
165  0.0f, 1.0f,
166  0.0f, 7.0f,
167 
168  0.0f, 2.0f,
169  0.0f, 8.0f,
170 
171  0.0f, 3.0f,
172  0.0f, 9.0f,
173 
174  0.0f, 4.0f,
175  0.0f, 10.0f, }}});
176 }