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/MultiOutput.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/MultiOutput.cpp')
-rw-r--r-- | src/armnnTfParser/test/MultiOutput.cpp | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/src/armnnTfParser/test/MultiOutput.cpp b/src/armnnTfParser/test/MultiOutput.cpp deleted file mode 100644 index 15879c2bed..0000000000 --- a/src/armnnTfParser/test/MultiOutput.cpp +++ /dev/null @@ -1,144 +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" - -BOOST_AUTO_TEST_SUITE(TensorflowParser) - -struct MultiOutMatchFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - MultiOutMatchFixture() - { - m_Prototext = R"( -node { - name: "input" - op: "Placeholder" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "shape" - value { - shape { - } - } - } -} -node { - name: "softmax1" - op: "Softmax" - input: "input:0" - attr { - key: "T" - value { - type: DT_FLOAT - } - } -} - )"; - SetupSingleInputSingleOutput({ 1, 7 }, "input", "softmax1"); - } -}; - -BOOST_FIXTURE_TEST_CASE(MultiOutMatch, MultiOutMatchFixture) -{ - // Note that the point of this test is to verify the parsing went well. - // Here we make sure the softmax has really connected to the input layer. - RunTest<2>({ 0, 0, 10000, 0, 0, 0, 0 }, { 0, 0, 1, 0, 0, 0, 0 }); -} - -struct MultiOutFailFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - MultiOutFailFixture() - { - m_Prototext = R"( -node { - name: "input" - op: "Placeholder" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "shape" - value { - shape { - } - } - } -} -node { - name: "softmax1" - op: "Softmax" - input: "input:1" - attr { - key: "T" - value { - type: DT_FLOAT - } - } -} - )"; - BOOST_CHECK_THROW(SetupSingleInputSingleOutput({ 1, 7 }, "input", "softmax1"), armnn::ParseException); - } -}; - -BOOST_FIXTURE_TEST_CASE(MultiOutFail, MultiOutFailFixture) -{ - // Not running the graph because this is expected to throw an exception during parsing. -} - -struct MultiOutInvalidFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - MultiOutInvalidFixture() - { - m_Prototext = R"( -node { - name: "input" - op: "Placeholder" - attr { - key: "dtype" - value { - type: DT_FLOAT - } - } - attr { - key: "shape" - value { - shape { - } - } - } -} -node { - name: "softmax1" - op: "Softmax" - input: "input:-1" - attr { - key: "T" - value { - type: DT_FLOAT - } - } -} - )"; - BOOST_CHECK_THROW(SetupSingleInputSingleOutput({ 1, 7 }, "input", "softmax1"), armnn::ParseException); - } -}; - -BOOST_FIXTURE_TEST_CASE(MultiOutInvalid, MultiOutInvalidFixture) -{ - // Not running the graph because this is expected to throw an exception during parsing. -} - - -BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file |