1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #12336 from dkurt:dnn_ie_fix_net_lifetime

This commit is contained in:
Alexander Alekhin
2018-08-30 11:09:18 +00:00
3 changed files with 3 additions and 4 deletions
+1
View File
@@ -161,6 +161,7 @@ InfEngineBackendNet::InfEngineBackendNet(InferenceEngine::CNNNetwork& net)
inputs = net.getInputsInfo();
outputs = net.getOutputsInfo();
layers.resize(net.layerCount()); // A hack to execute InfEngineBackendNet::layerCount correctly.
netOwner = net;
}
void InfEngineBackendNet::Release() noexcept
+2
View File
@@ -131,6 +131,8 @@ private:
InferenceEngine::InferencePlugin plugin;
InferenceEngine::ExecutableNetwork netExec;
InferenceEngine::InferRequest infRequest;
// In case of models from Model Optimizer we need to manage their lifetime.
InferenceEngine::CNNNetwork netOwner;
std::string name;