Skip to content

Commit

Permalink
Fixed header paths for some nGraph ops
Browse files Browse the repository at this point in the history
* Added dependency on IE version

backport of commit: 992c908
  • Loading branch information
ilyachur authored and alalek committed Jul 6, 2020
1 parent 65dbbf7 commit d69a7a3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/dnn/src/layers/detection_output_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@

#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/detection_output.hpp>
#else
#include <ngraph/op/experimental/layers/detection_output.hpp>
#endif

#endif

namespace cv
{
namespace dnn
Expand Down
5 changes: 5 additions & 0 deletions modules/dnn/src/layers/pooling_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@

#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/roi_pooling.hpp>
#include <ngraph/op/psroi_pooling.hpp>
#else
#include <ngraph/op/experimental/layers/roi_pooling.hpp>
#include <ngraph/op/experimental/layers/psroi_pooling.hpp>
#endif
#endif

#include <float.h>
#include <algorithm>
Expand Down
5 changes: 5 additions & 0 deletions modules/dnn/src/layers/prior_box_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@

#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/prior_box.hpp>
#include <ngraph/op/prior_box_clustered.hpp>
#else
#include <ngraph/op/experimental/layers/prior_box.hpp>
#include <ngraph/op/experimental/layers/prior_box_clustered.hpp>
#endif
#endif

#include <float.h>
#include <algorithm>
Expand Down
4 changes: 4 additions & 0 deletions modules/dnn/src/layers/proposal_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@

#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/proposal.hpp>
#else
#include <ngraph/op/experimental/layers/proposal.hpp>
#endif
#endif

namespace cv { namespace dnn {

Expand Down
6 changes: 5 additions & 1 deletion modules/dnn/src/layers/reorg_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
//M*/

#include "../precomp.hpp"
#include "../op_inf_engine.hpp"

#include <opencv2/dnn/shape_utils.hpp>
#include <opencv2/dnn/all_layers.hpp>
Expand All @@ -50,10 +49,15 @@
#include "opencl_kernels_dnn.hpp"
#endif

#include "../op_inf_engine.hpp"
#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/reorg_yolo.hpp>
#else
#include <ngraph/op/experimental/layers/reorg_yolo.hpp>
#endif
#endif

namespace cv
{
Expand Down
4 changes: 4 additions & 0 deletions modules/dnn/src/layers/resize_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@

#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
#include <ngraph/op/interpolate.hpp>
#else
#include <ngraph/op/experimental/layers/interpolate.hpp>
#endif
#endif

namespace cv { namespace dnn {

Expand Down

0 comments on commit d69a7a3

Please sign in to comment.