telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | #include <boost/test/unit_test.hpp> |
| 6 | #include "armnnCaffeParser/ICaffeParser.hpp" |
| 7 | #include "ParserPrototxtFixture.hpp" |
| 8 | |
| 9 | BOOST_AUTO_TEST_SUITE(CaffeParser) |
| 10 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 11 | struct SplitFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 12 | { |
| 13 | SplitFixture() |
| 14 | { |
| 15 | m_Prototext = R"( |
| 16 | name: "Split" |
| 17 | layer { |
| 18 | name: "data" |
| 19 | type: "Input" |
| 20 | top: "data" |
| 21 | input_param { shape: { dim: 1 dim: 1 dim: 1 dim: 1 } } |
| 22 | } |
| 23 | layer { |
| 24 | name: "split" |
| 25 | type: "Split" |
| 26 | bottom: "data" |
| 27 | top: "split_top0" |
| 28 | top: "split_top1" |
| 29 | } |
| 30 | layer { |
| 31 | bottom: "split_top0" |
| 32 | bottom: "split_top1" |
| 33 | top: "add" |
| 34 | name: "add" |
| 35 | type: "Eltwise" |
| 36 | } |
| 37 | )"; |
| 38 | SetupSingleInputSingleOutput("data", "add"); |
| 39 | } |
| 40 | }; |
| 41 | |
| 42 | BOOST_FIXTURE_TEST_CASE(Split, SplitFixture) |
| 43 | { |
| 44 | RunTest<1>({ 1.0f }, { 2.0f }); |
| 45 | } |
| 46 | |
| 47 | BOOST_AUTO_TEST_SUITE_END() |