Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Add serialize method for IE net wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dkurt committed Nov 27, 2018
1 parent 51cc78b commit 4ba4901
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/dnn/src/op_inf_engine.cpp
Expand Up @@ -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<const InfEngineBackendNet*>(this)->layerCount();
Expand Down
2 changes: 2 additions & 0 deletions modules/dnn/src/op_inf_engine.hpp
Expand Up @@ -68,6 +68,8 @@ class InfEngineBackendNet : public InferenceEngine::ICNNNetwork

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;
Expand Down

0 comments on commit 4ba4901

Please sign in to comment.