File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3263,6 +3263,9 @@ Net Net::Impl::createNetworkFromModelOptimizer(InferenceEngine::CNNNetwork& ieNe
3263
3263
}
3264
3264
else
3265
3265
{
3266
+ #if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
3267
+ CV_Error (Error::StsNotImplemented, " This OpenCV version is built with Inference Engine which has dropped IR v7 support" );
3268
+ #else
3266
3269
CV_TRACE_REGION (" legacy_cnn_layer" );
3267
3270
try
3268
3271
{
@@ -3278,6 +3281,8 @@ Net Net::Impl::createNetworkFromModelOptimizer(InferenceEngine::CNNNetwork& ieNe
3278
3281
CV_LOG_DEBUG (NULL , " IE layer extraction failure: '" << name << " ' - " << e.what ());
3279
3282
return false ;
3280
3283
}
3284
+ #endif
3285
+
3281
3286
}
3282
3287
};
3283
3288
Original file line number Diff line number Diff line change 26
26
#define INF_ENGINE_RELEASE_2020_1 2020010000
27
27
#define INF_ENGINE_RELEASE_2020_2 2020020000
28
28
#define INF_ENGINE_RELEASE_2020_3 2020030000
29
+ #define INF_ENGINE_RELEASE_2020_4 2020040000
29
30
30
31
#ifndef INF_ENGINE_RELEASE
31
32
#warning ("IE version have not been provided via command-line. Using 2020.3 by default")
You can’t perform that action at this time.
0 commit comments