dnn: update InferenceEngine extension handling
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 19 Nov 2019 06:55:14 +0000 (06:55 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 19 Nov 2019 06:55:14 +0000 (06:55 +0000)
modules/dnn/src/op_inf_engine.cpp

index fd93765..64d4a19 100644 (file)
@@ -609,7 +609,7 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::CNNNetwork& net)
             {
                 candidates.push_back(param_pluginPath);
             }
-
+#if INF_ENGINE_VER_MAJOR_LE(INF_ENGINE_RELEASE_2019R3)
             if (device_name == "CPU" || device_name == "FPGA")
             {
                 std::string suffixes[] = {"_avx2", "_sse4", ""};
@@ -632,6 +632,7 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::CNNNetwork& net)
 #endif  // _WIN32
                 }
             }
+#endif
             bool found = false;
             for (size_t i = 0; i != candidates.size(); ++i)
             {