diff --git a/modules/dnn/src/op_inf_engine.cpp b/modules/dnn/src/op_inf_engine.cpp index 75503885f8..1b4d26058e 100644 --- a/modules/dnn/src/op_inf_engine.cpp +++ b/modules/dnn/src/op_inf_engine.cpp @@ -126,6 +126,12 @@ void InfEngineBackendNet::getInputsInfo(InferenceEngine::InputsDataMap &inputs_) inputs_ = inputs; } +// Returns input references that aren't connected to internal outputs. +void InfEngineBackendNet::getInputsInfo(InferenceEngine::InputsDataMap &inputs_) const noexcept +{ + inputs_ = inputs; +} + InferenceEngine::InputInfo::Ptr InfEngineBackendNet::getInput(const std::string &inputName) noexcept { getInputsInfo(inputs); diff --git a/modules/dnn/src/op_inf_engine.hpp b/modules/dnn/src/op_inf_engine.hpp index 7a622e0acf..f26d467f23 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -29,6 +29,8 @@ public: virtual void getInputsInfo(InferenceEngine::InputsDataMap &inputs) noexcept; + virtual void getInputsInfo(InferenceEngine::InputsDataMap &inputs) const noexcept; + virtual InferenceEngine::InputInfo::Ptr getInput(const std::string &inputName) noexcept; virtual void getName(char *pName, size_t len) noexcept;