diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-19 16:59:48 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-27 17:37:11 +0100 |
commit | 5d955cf70ae0c5558d4f431f0fc6bd4552cd43a5 (patch) | |
tree | 4fb59200899808b8b008d6f48322d0d799b8b631 /src/armnnTfParser/test/BroadcastForAdd.cpp | |
parent | 4a621c43174b6bdd9dc0bff839b245bc2139d6a6 (diff) | |
download | armnn-5d955cf70ae0c5558d4f431f0fc6bd4552cd43a5.tar.gz |
IVGCVSW-5721 Remove the Tensorflow Parser from ArmNN
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ida37d3ee3a1af0c75aa905199bd861726c646846
Diffstat (limited to 'src/armnnTfParser/test/BroadcastForAdd.cpp')
-rw-r--r-- | src/armnnTfParser/test/BroadcastForAdd.cpp | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/src/armnnTfParser/test/BroadcastForAdd.cpp b/src/armnnTfParser/test/BroadcastForAdd.cpp deleted file mode 100644 index 36cba9df4e..0000000000 --- a/src/armnnTfParser/test/BroadcastForAdd.cpp +++ /dev/null @@ -1,149 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include <boost/test/unit_test.hpp> -#include "armnnTfParser/ITfParser.hpp" -#include "ParserPrototxtFixture.hpp" -// This is a special case for add, which supports broadcasting. -BOOST_AUTO_TEST_SUITE(TensorflowParser) - -struct BroadcastForAddFixtureSlot1 : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - BroadcastForAddFixtureSlot1() - { - m_Prototext = R"( - node { - name: "graphInput" - op: "Placeholder" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "shape" - value { - shape { - } - } - } - } - node { - name: "Const_1" - op: "Const" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "value" - value { - tensor { - dtype: DT_FLOAT - tensor_shape { - } - float_val: 4.0 - float_val: 5.0 - } - } - } - } - node { - name: "Add" - op: "Add" - input: "graphInput" - input: "Const_1" - attr { - key: "T" - value { - type: DT_FLOAT - } - } - } - )"; - - SetupSingleInputSingleOutput({ 1, 2, 2, 2 }, "graphInput", "Add"); - } -}; - -struct BroadcastForAddFixtureSlot0 : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - BroadcastForAddFixtureSlot0() - { - m_Prototext = R"( - node { - name: "graphInput" - op: "Placeholder" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "shape" - value { - shape { - } - } - } - } - node { - name: "Const_1" - op: "Const" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "value" - value { - tensor { - dtype: DT_FLOAT - tensor_shape { - } - float_val: 4.0 - float_val: 5.0 - } - } - } - } - node { - name: "Add" - op: "Add" - input: "Const_1" - input: "graphInput" - attr { - key: "T" - value { - type: DT_FLOAT - } - } - } - )"; - - SetupSingleInputSingleOutput({ 1, 2, 2, 2 }, "graphInput", "Add"); - } -}; - - -BOOST_FIXTURE_TEST_CASE(ParseBroadcastForAddition1, BroadcastForAddFixtureSlot1) -{ - RunTest<4>({ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0 }, { 5.0, 6.0, 6.0, 7.0, 7.0, 8.0, 8.0, 9.0 }); -} - -BOOST_FIXTURE_TEST_CASE(ParseBroadcastForAddition0, BroadcastForAddFixtureSlot0) -{ - RunTest<4>({ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0 }, { 5.0, 6.0, 6.0, 7.0, 7.0, 8.0, 8.0, 9.0 }); -} - - - -BOOST_AUTO_TEST_SUITE_END() |