blob: 23dcc789415d18f819e13e19cbd8226d8a876fb1 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5#include <boost/test/unit_test.hpp>
6#include "armnnCaffeParser/ICaffeParser.hpp"
7#include "ParserPrototxtFixture.hpp"
8
9BOOST_AUTO_TEST_SUITE(CaffeParser)
10
telsoa01c577f2c2018-08-31 09:22:23 +010011struct MultiInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser>
telsoa014fcda012018-03-09 14:13:49 +000012{
13 MultiInputsOutputsFixture()
14 {
15 m_Prototext = R"(
16name: "MultiInputsOutputs"
17layer {
18 name: "input1"
19 type: "Input"
20 top: "input1"
21 input_param { shape: { dim: 1 } }
22}
23layer {
24 name: "input2"
25 type: "Input"
26 top: "input2"
27 input_param { shape: { dim: 1 } }
28}
29layer {
30 bottom: "input1"
31 bottom: "input2"
32 top: "add1"
33 name: "add1"
34 type: "Eltwise"
35}
36layer {
37 bottom: "input2"
38 bottom: "input1"
39 top: "add2"
40 name: "add2"
41 type: "Eltwise"
42}
43 )";
44 Setup({ }, { "add1", "add2" });
45 }
46};
47
48BOOST_FIXTURE_TEST_CASE(MultiInputsOutputs, MultiInputsOutputsFixture)
49{
50 RunTest<1>({ { "input1",{ 12.0f } },{ "input2",{ 13.0f } } },
51 { { "add1",{ 25.0f } },{ "add2",{ 25.0f } } });
52}
53
54BOOST_AUTO_TEST_SUITE_END()