blob: a84d7ec70ab44fcf5c1bb8770e92ba66fdbb1191 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
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 SplitFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser>
telsoa014fcda012018-03-09 14:13:49 +000012{
13 SplitFixture()
14 {
15 m_Prototext = R"(
16name: "Split"
17layer {
18 name: "data"
19 type: "Input"
20 top: "data"
21 input_param { shape: { dim: 1 dim: 1 dim: 1 dim: 1 } }
22}
23layer {
24 name: "split"
25 type: "Split"
26 bottom: "data"
27 top: "split_top0"
28 top: "split_top1"
29}
30layer {
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
42BOOST_FIXTURE_TEST_CASE(Split, SplitFixture)
43{
44 RunTest<1>({ 1.0f }, { 2.0f });
45}
46
47BOOST_AUTO_TEST_SUITE_END()