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/Identity.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/Identity.cpp')
-rw-r--r-- | src/armnnTfParser/test/Identity.cpp | 161 |
1 files changed, 0 insertions, 161 deletions
diff --git a/src/armnnTfParser/test/Identity.cpp b/src/armnnTfParser/test/Identity.cpp deleted file mode 100644 index 5b04d42b67..0000000000 --- a/src/armnnTfParser/test/Identity.cpp +++ /dev/null @@ -1,161 +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 IdentitySimpleFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - IdentitySimpleFixture() - { - m_Prototext = "node{ " - " name: \"Placeholder\"" - " op: \"Placeholder\"" - " attr {" - " key: \"dtype\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - " attr {" - " key: \"shape\"" - " value {" - " shape {" - " unknown_rank: true" - " }" - " }" - " }" - "}" - "node {" - " name: \"Identity\"" - " op: \"Identity\"" - " input: \"Placeholder\"" - " attr {" - " key: \"T\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - "}"; - SetupSingleInputSingleOutput({ 4 }, "Placeholder", "Identity"); - } -}; - -BOOST_FIXTURE_TEST_CASE(IdentitySimple, IdentitySimpleFixture) -{ - RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 1.0f, 2.0f, 3.0f, 4.0f }); -} - -struct IdentityFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - IdentityFixture() - { - m_Prototext = "node{ " - " name: \"Placeholder\"" - " op: \"Placeholder\"" - " attr {" - " key: \"dtype\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - " attr {" - " key: \"shape\"" - " value {" - " shape {" - " unknown_rank: true" - " }" - " }" - " }" - "}" - "node {" - " name: \"Identity\"" - " op: \"Identity\"" - " input: \"Placeholder\"" - " attr {" - " key: \"T\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - "}" - "node {" - " name: \"Add\"" - " op: \"Add\"" - " input: \"Identity\"" - " input: \"Identity\"" - " attr {" - " key: \"T\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - "}"; - SetupSingleInputSingleOutput({ 4 }, "Placeholder", "Add"); - } -}; - -BOOST_FIXTURE_TEST_CASE(ParseIdentity, IdentityFixture) -{ - RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 2.0f, 4.0f, 6.0f, 8.0f }); -} - -struct IdentityChainFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> -{ - IdentityChainFixture() - { - m_Prototext = "node{ " - " name: \"Placeholder\"" - " op: \"Placeholder\"" - " attr {" - " key: \"dtype\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - " attr {" - " key: \"shape\"" - " value {" - " shape {" - " unknown_rank: true" - " }" - " }" - " }" - "}" - "node {" - " name: \"Identity\"" - " op: \"Identity\"" - " input: \"Placeholder\"" - " attr {" - " key: \"T\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - "}" - "node {" - " name: \"Identity2\"" - " op: \"Identity\"" - " input: \"Identity\"" - " attr {" - " key: \"T\"" - " value {" - " type: DT_FLOAT" - " }" - " }" - "}"; - SetupSingleInputSingleOutput({ 4 }, "Placeholder", "Identity2"); - } -}; - -BOOST_FIXTURE_TEST_CASE(IdentityChain, IdentityChainFixture) -{ - RunTest<1>({ 1.0f, 2.0f, 3.0f, 4.0f }, { 1.0f, 2.0f, 3.0f, 4.0f }); -} - -BOOST_AUTO_TEST_SUITE_END() |