ArmNN  NotReleased
DeserializeStridedSlice.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersSerializeFixture.hpp"
#include "../Deserializer.hpp"
#include <string>

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (SimpleStridedSliceFloat32, SimpleStridedSliceFixture)
 
 BOOST_FIXTURE_TEST_CASE (StridedSliceMaskFloat32, StridedSliceMaskFixture)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( SimpleStridedSliceFloat32  ,
SimpleStridedSliceFixture   
)

Definition at line 137 of file DeserializeStridedSlice.cpp.

138 {
139  RunTest<4, armnn::DataType::Float32>(0,
140  {
141  1.0f, 1.0f, 1.0f, 2.0f, 2.0f, 2.0f,
142  3.0f, 3.0f, 3.0f, 4.0f, 4.0f, 4.0f,
143  5.0f, 5.0f, 5.0f, 6.0f, 6.0f, 6.0f
144  },
145  {
146  1.0f, 1.0f, 5.0f, 5.0f
147  });
148 }

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( StridedSliceMaskFloat32  ,
StridedSliceMaskFixture   
)

Definition at line 166 of file DeserializeStridedSlice.cpp.

References BOOST_AUTO_TEST_SUITE_END().

167 {
168  RunTest<4, armnn::DataType::Float32>(0,
169  {
170  1.0f, 1.0f, 1.0f, 2.0f, 2.0f, 2.0f,
171  3.0f, 3.0f, 3.0f, 4.0f, 4.0f, 4.0f,
172  5.0f, 5.0f, 5.0f, 6.0f, 6.0f, 6.0f
173  },
174  {
175  1.0f, 1.0f, 1.0f, 2.0f, 2.0f, 2.0f,
176  3.0f, 3.0f, 3.0f, 4.0f, 4.0f, 4.0f,
177  5.0f, 5.0f, 5.0f, 6.0f, 6.0f, 6.0f
178  });
179 }