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
diff --git a/src/armnnCaffeParser/CaffeParser.cpp b/src/armnnCaffeParser/CaffeParser.cpp
index dfb9cec..463f3eb 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 @@
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();