From ac001eebca101f2df4973d2f1d8cfca026e07419 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Wed, 3 Feb 2021 10:43:04 +0000 Subject: IVGCVSW-4901 Add semantic versioning to Parsers and TfLite Delegate * Added Version.hpp to all Parsers * Added Version.hpp to TfLite Delegate * Updated CMakeLists to use new versions * Added GetVersion method to parsers and TfLite Delegate Signed-off-by: Matthew Sloyan Change-Id: If29e1e6d9e615f9095ec1c01ad47acfff40b1dd5 --- src/armnnTfParser/TfParser.cpp | 8 ++++++++ src/armnnTfParser/TfParser.hpp | 3 +++ 2 files changed, 11 insertions(+) (limited to 'src/armnnTfParser') diff --git a/src/armnnTfParser/TfParser.cpp b/src/armnnTfParser/TfParser.cpp index d13a277924..1e566fe943 100755 --- a/src/armnnTfParser/TfParser.cpp +++ b/src/armnnTfParser/TfParser.cpp @@ -5,6 +5,8 @@ #include "TfParser.hpp" +#include "armnnTfParser/Version.hpp" + #include #include @@ -25,6 +27,7 @@ #include #include +#include #include using namespace armnnUtils; @@ -3734,4 +3737,9 @@ void ITfParser::TfParserImpl::TrackBindingPoint(IConnectableLayer* layer, } } +const std::string ITfParser::TfParserImpl::GetVersion() +{ + return TF_PARSER_VERSION; +} + } // namespace armnnTfParser diff --git a/src/armnnTfParser/TfParser.hpp b/src/armnnTfParser/TfParser.hpp index 5c04cceb82..31e074de93 100644 --- a/src/armnnTfParser/TfParser.hpp +++ b/src/armnnTfParser/TfParser.hpp @@ -88,6 +88,9 @@ public: /// Retrieves binding info (layer id and tensor info) for the network output identified by the given layer name. BindingPointInfo GetNetworkOutputBindingInfo(const std::string& name) const; + /// Retrieve version in X.Y.Z form + static const std::string GetVersion(); + TfParserImpl(); ~TfParserImpl() = default; -- cgit v1.2.1