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 AdditionFixture : public ParserPrototxtFixture<armnnTfParser::ITfParser>
16 m_Prototext = "node { \n"
17 " name: \"graphInput\" \n"
18 " op: \"Placeholder\" \n"
34 " name: \"softmax1\" \n"
36 " input: \"graphInput\" \n"
45 " name: \"softmax2\"\n"
47 " input: \"graphInput\"\n"
56 " name: \"addition\"\n"
58 " input: \"softmax1\"\n"
59 " input: \"softmax2\"\n"
68 SetupSingleInputSingleOutput({ 1, 7 }, "graphInput", "addition");
72 BOOST_FIXTURE_TEST_CASE(ParseAddition, AdditionFixture)
74 RunTest<2>({ 0, 0, 10000, 0, 0, 0, 0 }, { 0, 0, 2, 0, 0, 0, 0 });
78 BOOST_AUTO_TEST_SUITE_END()