aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfParser
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2021-02-03 10:43:04 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2021-02-08 16:25:54 +0000
commitac001eebca101f2df4973d2f1d8cfca026e07419 (patch)
treed8f3b0203a279e777fd27fd33a50282cd5adbc0f /src/armnnTfParser
parentd92a6e4c19567cb03de76963068c002353cea528 (diff)
downloadarmnn-ac001eebca101f2df4973d2f1d8cfca026e07419.tar.gz
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 <matthew.sloyan@arm.com> Change-Id: If29e1e6d9e615f9095ec1c01ad47acfff40b1dd5
Diffstat (limited to 'src/armnnTfParser')
-rwxr-xr-xsrc/armnnTfParser/TfParser.cpp8
-rw-r--r--src/armnnTfParser/TfParser.hpp3
2 files changed, 11 insertions, 0 deletions
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 <armnn/TypesUtils.hpp>
#include <armnn/Descriptors.hpp>
@@ -25,6 +27,7 @@
#include <fmt/core.h>
#include <fmt/format.h>
+#include <iostream>
#include <numeric>
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;