blob: ebda3ce1b8cea7a8332508d16f2237e72aed87ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <boost/test/unit_test.hpp>
#include "armnnCaffeParser/ICaffeParser.hpp"
#include "ParserPrototxtFixture.hpp"
BOOST_AUTO_TEST_SUITE(CaffeParser)
struct MultiInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser>
{
MultiInputsOutputsFixture()
{
m_Prototext = R"(
name: "MultiInputsOutputs"
layer {
name: "input1"
type: "Input"
top: "input1"
input_param { shape: { dim: 1 } }
}
layer {
name: "input2"
type: "Input"
top: "input2"
input_param { shape: { dim: 1 } }
}
layer {
bottom: "input1"
bottom: "input2"
top: "add1"
name: "add1"
type: "Eltwise"
}
layer {
bottom: "input2"
bottom: "input1"
top: "add2"
name: "add2"
type: "Eltwise"
}
)";
Setup({ }, { "add1", "add2" });
}
};
BOOST_FIXTURE_TEST_CASE(MultiInputsOutputs, MultiInputsOutputsFixture)
{
RunTest<1>({ { "input1",{ 12.0f } },{ "input2",{ 13.0f } } },
{ { "add1",{ 25.0f } },{ "add2",{ 25.0f } } });
}
BOOST_AUTO_TEST_SUITE_END()
|