diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2021-02-03 10:43:04 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2021-02-08 16:25:54 +0000 |
commit | ac001eebca101f2df4973d2f1d8cfca026e07419 (patch) | |
tree | d8f3b0203a279e777fd27fd33a50282cd5adbc0f /src/armnnCaffeParser | |
parent | d92a6e4c19567cb03de76963068c002353cea528 (diff) | |
download | armnn-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/armnnCaffeParser')
-rw-r--r-- | src/armnnCaffeParser/CaffeParser.cpp | 8 | ||||
-rw-r--r-- | src/armnnCaffeParser/CaffeParser.hpp | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/armnnCaffeParser/CaffeParser.cpp b/src/armnnCaffeParser/CaffeParser.cpp index dfb9cec206..463f3eb2a5 100644 --- a/src/armnnCaffeParser/CaffeParser.cpp +++ b/src/armnnCaffeParser/CaffeParser.cpp @@ -5,6 +5,8 @@ #include "CaffeParser.hpp" #include "RecordByRecordCaffeParser.hpp" +#include "armnnCaffeParser/Version.hpp" + #include "armnn/Descriptors.hpp" #include "armnn/INetwork.hpp" #include "armnn/Utils.hpp" @@ -35,6 +37,7 @@ #include <google/protobuf/wire_format.h> #include <cmath> +#include <iostream> #include <sstream> #include <queue> #include <fcntl.h> @@ -2250,6 +2253,11 @@ INetworkPtr ICaffeParser::CaffeParserImpl::CreateNetworkFromNetParameter(NetPara return move(m_Network); } +const std::string ICaffeParser::CaffeParserImpl::GetVersion() +{ + return CAFFE_PARSER_VERSION; +} + void ICaffeParser::CaffeParserImpl::Cleanup() { // cleanup, in case we reuse this parser m_InputShapes.clear(); diff --git a/src/armnnCaffeParser/CaffeParser.hpp b/src/armnnCaffeParser/CaffeParser.hpp index f369d5f2f9..9f93569742 100644 --- a/src/armnnCaffeParser/CaffeParser.hpp +++ b/src/armnnCaffeParser/CaffeParser.hpp @@ -54,6 +54,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(); + CaffeParserImpl(); virtual ~CaffeParserImpl() = default; |