From 4ba4901ca98c858bd6447ca085b4456db099e95c Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Tue, 27 Nov 2018 12:02:00 +0300 Subject: [PATCH] Add serialize method for IE net wrapper --- modules/dnn/src/op_inf_engine.cpp | 6 ++++++ modules/dnn/src/op_inf_engine.hpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/modules/dnn/src/op_inf_engine.cpp b/modules/dnn/src/op_inf_engine.cpp index d8d13bfa47..3e633dc2c1 100644 --- a/modules/dnn/src/op_inf_engine.cpp +++ b/modules/dnn/src/op_inf_engine.cpp @@ -233,6 +233,12 @@ const std::string& InfEngineBackendNet::getName() const CV_NOEXCEPT return name; } +InferenceEngine::StatusCode InfEngineBackendNet::serialize(const std::string&, const std::string&, InferenceEngine::ResponseDesc*) const CV_NOEXCEPT +{ + CV_Error(Error::StsNotImplemented, ""); + return InferenceEngine::StatusCode::OK; +} + size_t InfEngineBackendNet::layerCount() CV_NOEXCEPT { return const_cast(this)->layerCount(); diff --git a/modules/dnn/src/op_inf_engine.hpp b/modules/dnn/src/op_inf_engine.hpp index 20b13a390b..bb031824de 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -68,6 +68,8 @@ public: virtual InferenceEngine::InputInfo::Ptr getInput(const std::string &inputName) const CV_NOEXCEPT; + virtual InferenceEngine::StatusCode serialize(const std::string &xmlPath, const std::string &binPath, InferenceEngine::ResponseDesc* resp) const CV_NOEXCEPT; + virtual void getName(char *pName, size_t len) CV_NOEXCEPT; virtual void getName(char *pName, size_t len) const CV_NOEXCEPT;