ArmNN
 21.02
TestSplit.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include <boost/test/unit_test.hpp>
8 
9 BOOST_AUTO_TEST_SUITE(CaffeParser)
10 
11 struct SplitFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser>
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 
43 {
44  RunTest<1>({ 1.0f }, { 2.0f });
45 }
46 
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
void Split(const SplitterQueueDescriptor &data)
Definition: Splitter.cpp:21
BOOST_FIXTURE_TEST_CASE(Split, SplitFixture)
Definition: TestSplit.cpp:42
BOOST_AUTO_TEST_SUITE_END()
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
Parses and loads the network defined by the m_Prototext string.