2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
6 #include <boost/test/unit_test.hpp>
7 #include "armnnTfParser/ITfParser.hpp"
8 #include "ParserPrototxtFixture.hpp"
10 BOOST_AUTO_TEST_SUITE(TensorflowParser)
12 struct ReshapeFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser>
16 m_Prototext = "node { \n"
17 " name: \"graphInput\" \n"
18 " op: \"Placeholder\" \n"
34 " name: \"Reshape/shape\" \n"
52 " tensor_content: \"\\002\\000\\000\\000\\002\\000\\000\\000\" \n"
58 " name: \"Reshape\" \n"
60 " input: \"graphInput\" \n"
61 " input: \"Reshape/shape\" \n"
76 SetupSingleInputSingleOutput({1, 4}, "graphInput", "Reshape");
80 BOOST_FIXTURE_TEST_CASE(ParseReshape, ReshapeFixture)
82 RunTest<2>({ 0.0f, 1.0f, 2.0f, 3.0f }, { 0.0f, 1.0f, 2.0f, 3.0f });
85 BOOST_AUTO_TEST_SUITE_END()