diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-02 22:04:39 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-16 14:27:27 +0100 |
commit | 6dd178f2395b34cfb360eabb0130c19ed258f5fa (patch) | |
tree | 6814e4729bbd1e652d8b9c18c9db28f3bc2f8a8a /src/armnnCaffeParser/test/TestInPlace.cpp | |
parent | ed7fce413410d15c501ea52f9e6bfbbf71b3daf1 (diff) | |
download | armnn-6dd178f2395b34cfb360eabb0130c19ed258f5fa.tar.gz |
IVGCVSW-5720 Remove the Caffe Parser from ArmNN
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ib00be204f549efa9aa5971ecf65c2dec4a10b10f
Diffstat (limited to 'src/armnnCaffeParser/test/TestInPlace.cpp')
-rw-r--r-- | src/armnnCaffeParser/test/TestInPlace.cpp | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/src/armnnCaffeParser/test/TestInPlace.cpp b/src/armnnCaffeParser/test/TestInPlace.cpp deleted file mode 100644 index 2495e2182e..0000000000 --- a/src/armnnCaffeParser/test/TestInPlace.cpp +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#include <boost/test/unit_test.hpp> -#include "armnnCaffeParser/ICaffeParser.hpp" -#include "ParserPrototxtFixture.hpp" - -BOOST_AUTO_TEST_SUITE(CaffeParser) - -// The pooling layer should take its input from the relu, not the add directly. -struct InPlaceFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser> -{ - InPlaceFixture() - { - m_Prototext = R"( -name: "InPlace" -layer { - name: "data" - type: "Input" - top: "data" - input_param { shape: { dim: 1 dim: 1 dim: 1 dim: 1 } } -} -layer { - bottom: "data" - bottom: "data" - top: "add" - name: "add" - type: "Eltwise" -} -layer { - name: "relu" - type: "ReLU" - bottom: "add" - top: "relu" - phase: TEST -} -layer { - name: "pool" - type: "Pooling" - bottom: "relu" - top: "pool" - phase: TEST - pooling_param { - pool: MAX - kernel_size: 1 - stride: 1 - } -} - )"; - SetupSingleInputSingleOutput("data", "pool"); - } -}; - -BOOST_FIXTURE_TEST_CASE(ParseInPlace, InPlaceFixture) -{ - RunTest<1>({ -1.0f }, { 0.0f }); -} - -// The requested output of the network is a layer which has an activation attached. -// The output of the network should therefore actually be the activation layer. -struct InPlaceOutputFixture : public armnnUtils::ParserPrototxtFixture<armnnCaffeParser::ICaffeParser> -{ - InPlaceOutputFixture() - { - m_Prototext = R"( -name: "InPlace" -layer { - name: "data" - type: "Input" - top: "data" - input_param { shape: { dim: 1 dim: 1 dim: 1 dim: 1 } } -} -layer { - bottom: "data" - bottom: "data" - top: "add" - name: "add" - type: "Eltwise" -} -layer { - name: "relu" - type: "ReLU" - bottom: "add" - top: "add" - phase: TEST -} - )"; - SetupSingleInputSingleOutput("data", "add"); - } -}; - -BOOST_FIXTURE_TEST_CASE(InPlaceOutput, InPlaceOutputFixture) -{ - RunTest<1>({ -1.0f }, { 0.0f }); -} - -BOOST_AUTO_TEST_SUITE_END() |