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 MultiInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser>
14 MultiInputsOutputsFixture()
16 // Input1 = tf.placeholder(tf.float32, shape=[], name = "input1")
17 // Input2 = tf.placeholder(tf.float32, shape = [], name = "input2")
18 // Add1 = tf.add(input1, input2, name = "add1")
19 // Add2 = tf.add(input1, input2, name = "add2")
80 Setup({ { "input1", { 1 } },
81 { "input2", { 1 } } },
86 BOOST_FIXTURE_TEST_CASE(MultiInputsOutputs, MultiInputsOutputsFixture)
88 RunTest<1>({ { "input1", {12.0f} }, { "input2", { 13.0f } } },
89 { { "add1", { 25.0f } }, { "add2", { 25.0f } } });
92 BOOST_AUTO_TEST_SUITE_END()