6 #include <boost/test/unit_test.hpp> 14 ReshapeMainFixture(
const std::string& dataType)
19 producer_version: "2.5.1" 28 elem_type: )" + dataType + R"( 90 ReshapeRank4Fixture(
const std::string& dataType)
95 producer_version: "2.5.1" 104 elem_type: )" + dataType + R"( 173 struct ReshapeValidFixture : ReshapeMainFixture
175 ReshapeValidFixture() : ReshapeMainFixture(
"1") {
180 struct ReshapeValidRank4Fixture : ReshapeRank4Fixture
182 ReshapeValidRank4Fixture() : ReshapeRank4Fixture(
"1") {
187 struct ReshapeInvalidFixture : ReshapeMainFixture
189 ReshapeInvalidFixture() : ReshapeMainFixture(
"10") { }
194 RunTest<2>({{
"Input", { 0.0f, 1.0f, 2.0f, 3.0f }}}, {{
"Output", { 0.0f, 1.0f, 2.0f, 3.0f }}});
201 {1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
202 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
203 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f}}},
205 {1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
206 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f,
207 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f}}});
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
BOOST_FIXTURE_TEST_CASE(ValidReshapeTest, ReshapeValidFixture)
BOOST_AUTO_TEST_SUITE_END()