Skip to content

Commit dcb7fd8

Browse files
committed
Merge pull request opencv#17766 from alalek:backport_17756
2 parents e4887aa + d69a7a3 commit dcb7fd8

File tree

6 files changed

+28
-1
lines changed

6 files changed

+28
-1
lines changed

modules/dnn/src/layers/detection_output_layer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@
5454

5555
#ifdef HAVE_DNN_NGRAPH
5656
#include "../ie_ngraph.hpp"
57+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
58+
#include <ngraph/op/detection_output.hpp>
59+
#else
5760
#include <ngraph/op/experimental/layers/detection_output.hpp>
5861
#endif
5962

63+
#endif
64+
6065
namespace cv
6166
{
6267
namespace dnn

modules/dnn/src/layers/pooling_layer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@
4848

4949
#ifdef HAVE_DNN_NGRAPH
5050
#include "../ie_ngraph.hpp"
51+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
52+
#include <ngraph/op/roi_pooling.hpp>
53+
#include <ngraph/op/psroi_pooling.hpp>
54+
#else
5155
#include <ngraph/op/experimental/layers/roi_pooling.hpp>
5256
#include <ngraph/op/experimental/layers/psroi_pooling.hpp>
5357
#endif
58+
#endif
5459

5560
#include <float.h>
5661
#include <algorithm>

modules/dnn/src/layers/prior_box_layer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@
4646

4747
#ifdef HAVE_DNN_NGRAPH
4848
#include "../ie_ngraph.hpp"
49+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
50+
#include <ngraph/op/prior_box.hpp>
51+
#include <ngraph/op/prior_box_clustered.hpp>
52+
#else
4953
#include <ngraph/op/experimental/layers/prior_box.hpp>
5054
#include <ngraph/op/experimental/layers/prior_box_clustered.hpp>
5155
#endif
56+
#endif
5257

5358
#include <float.h>
5459
#include <algorithm>

modules/dnn/src/layers/proposal_layer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010

1111
#ifdef HAVE_DNN_NGRAPH
1212
#include "../ie_ngraph.hpp"
13+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
14+
#include <ngraph/op/proposal.hpp>
15+
#else
1316
#include <ngraph/op/experimental/layers/proposal.hpp>
1417
#endif
18+
#endif
1519

1620
namespace cv { namespace dnn {
1721

modules/dnn/src/layers/reorg_layer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
//M*/
4242

4343
#include "../precomp.hpp"
44-
#include "../op_inf_engine.hpp"
4544

4645
#include <opencv2/dnn/shape_utils.hpp>
4746
#include <opencv2/dnn/all_layers.hpp>
@@ -50,10 +49,15 @@
5049
#include "opencl_kernels_dnn.hpp"
5150
#endif
5251

52+
#include "../op_inf_engine.hpp"
5353
#ifdef HAVE_DNN_NGRAPH
5454
#include "../ie_ngraph.hpp"
55+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
56+
#include <ngraph/op/reorg_yolo.hpp>
57+
#else
5558
#include <ngraph/op/experimental/layers/reorg_yolo.hpp>
5659
#endif
60+
#endif
5761

5862
namespace cv
5963
{

modules/dnn/src/layers/resize_layer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111

1212
#ifdef HAVE_DNN_NGRAPH
1313
#include "../ie_ngraph.hpp"
14+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
15+
#include <ngraph/op/interpolate.hpp>
16+
#else
1417
#include <ngraph/op/experimental/layers/interpolate.hpp>
1518
#endif
19+
#endif
1620

1721
namespace cv { namespace dnn {
1822

0 commit comments

Comments
 (0)