From 5d955cf70ae0c5558d4f431f0fc6bd4552cd43a5 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Mon, 19 Apr 2021 16:59:48 +0100 Subject: IVGCVSW-5721 Remove the Tensorflow Parser from ArmNN Signed-off-by: Nikhil Raj Change-Id: Ida37d3ee3a1af0c75aa905199bd861726c646846 --- include/armnnTfParser/ITfParser.hpp | 77 ------------------------------------- include/armnnTfParser/Version.hpp | 29 -------------- 2 files changed, 106 deletions(-) delete mode 100644 include/armnnTfParser/ITfParser.hpp delete mode 100644 include/armnnTfParser/Version.hpp (limited to 'include/armnnTfParser') diff --git a/include/armnnTfParser/ITfParser.hpp b/include/armnnTfParser/ITfParser.hpp deleted file mode 100644 index 91e4cb39bf..0000000000 --- a/include/armnnTfParser/ITfParser.hpp +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#pragma once - -#include "armnn/Types.hpp" -#include "armnn/Tensor.hpp" -#include "armnn/INetwork.hpp" - -#include -#include -#include -#include - -namespace armnnTfParser -{ - -using BindingPointInfo = armnn::BindingPointInfo; - -class ITfParser; -using ITfParserPtr = std::unique_ptr; - -/// Parses a directed acyclic graph from a tensorflow protobuf file. -class ITfParser -{ -public: - static ITfParser* CreateRaw(); - static ITfParserPtr Create(); - static void Destroy(ITfParser* parser); - - /// Create the network from a protobuf text file on the disk. - armnn::INetworkPtr CreateNetworkFromTextFile( - const char* graphFile, - const std::map& inputShapes, - const std::vector& requestedOutputs); - - /// Create the network from a protobuf binary file on the disk. - armnn::INetworkPtr CreateNetworkFromBinaryFile( - const char* graphFile, - const std::map& inputShapes, - const std::vector& requestedOutputs); - - /// Create the network directly from protobuf text in a string. Useful for debugging/testing. - armnn::INetworkPtr CreateNetworkFromString( - const char* protoText, - const std::map& inputShapes, - const std::vector& requestedOutputs); - - /// Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name. - BindingPointInfo GetNetworkInputBindingInfo(const std::string& name) const; - - /// Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name. - BindingPointInfo GetNetworkOutputBindingInfo(const std::string& name) const; - -private: - template - friend class ParsedConstTfOperation; - friend class ParsedMatMulTfOperation; - friend class ParsedMulTfOperation; - friend class ParsedTfOperation; - friend class SingleLayerParsedTfOperation; - friend class DeferredSingleLayerParsedTfOperation; - friend class ParsedIdentityTfOperation; - - template class OperatorType, typename T> - friend struct MakeTfOperation; - - - ITfParser(); - ~ITfParser(); - - struct TfParserImpl; - std::unique_ptr pTfParserImpl; -}; - -} diff --git a/include/armnnTfParser/Version.hpp b/include/armnnTfParser/Version.hpp deleted file mode 100644 index 25449f3180..0000000000 --- a/include/armnnTfParser/Version.hpp +++ /dev/null @@ -1,29 +0,0 @@ -// -// Copyright © 2021 Arm Ltd and Contributors. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -namespace armnnTfParser -{ - -/// Macro utils -#define STRINGIFY_VALUE(s) STRINGIFY_MACRO(s) -#define STRINGIFY_MACRO(s) #s - -// tfParser version components -#define TF_PARSER_MAJOR_VERSION 24 -#define TF_PARSER_MINOR_VERSION 1 -#define TF_PARSER_PATCH_VERSION 0 - -/// TF_PARSER_VERSION: "X.Y.Z" -/// where: -/// X = Major version number -/// Y = Minor version number -/// Z = Patch version number -#define TF_PARSER_VERSION STRINGIFY_VALUE(TF_PARSER_MAJOR_VERSION) "." \ - STRINGIFY_VALUE(TF_PARSER_MINOR_VERSION) "." \ - STRINGIFY_VALUE(TF_PARSER_PATCH_VERSION) - -} //namespace armnnTfParser -- cgit v1.2.1