Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
510a8520
Commit
510a8520
authored
Mar 10, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16746 from alalek:dnn_switch_ie_backend_ngraph
parents
09fe66e8
db95aec4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
CMakeLists.txt
modules/dnn/CMakeLists.txt
+1
-1
dnn.hpp
modules/dnn/include/opencv2/dnn/dnn.hpp
+2
-2
op_inf_engine.cpp
modules/dnn/src/op_inf_engine.cpp
+5
-3
No files found.
modules/dnn/CMakeLists.txt
View file @
510a8520
...
...
@@ -106,7 +106,7 @@ endif()
set
(
dnn_runtime_libs
""
)
if
(
INF_ENGINE_TARGET
)
ocv_option
(
OPENCV_DNN_IE_NN_BUILDER_2019
"Build with Inference Engine NN Builder API support"
ON
)
ocv_option
(
OPENCV_DNN_IE_NN_BUILDER_2019
"Build with Inference Engine NN Builder API support"
ON
)
# future: NOT HAVE_NGRAPH
if
(
OPENCV_DNN_IE_NN_BUILDER_2019
)
message
(
STATUS
"DNN: Enabling Inference Engine NN Builder API support"
)
add_definitions
(
-DHAVE_DNN_IE_NN_BUILDER_2019=1
)
...
...
modules/dnn/include/opencv2/dnn/dnn.hpp
View file @
510a8520
...
...
@@ -47,9 +47,9 @@
#include "opencv2/core/async.hpp"
#if !defined CV_DOXYGEN && !defined CV_STATIC_ANALYSIS && !defined CV_DNN_DONT_ADD_EXPERIMENTAL_NS
#define CV__DNN_EXPERIMENTAL_NS_BEGIN namespace experimental_dnn_34_v1
6
{
#define CV__DNN_EXPERIMENTAL_NS_BEGIN namespace experimental_dnn_34_v1
7
{
#define CV__DNN_EXPERIMENTAL_NS_END }
namespace
cv
{
namespace
dnn
{
namespace
experimental_dnn_34_v1
6
{
}
using
namespace
experimental_dnn_34_v16
;
}}
namespace
cv
{
namespace
dnn
{
namespace
experimental_dnn_34_v1
7
{
}
using
namespace
experimental_dnn_34_v17
;
}}
#else
#define CV__DNN_EXPERIMENTAL_NS_BEGIN
#define CV__DNN_EXPERIMENTAL_NS_END
...
...
modules/dnn/src/op_inf_engine.cpp
View file @
510a8520
...
...
@@ -41,11 +41,13 @@ static const char* dumpInferenceEngineBackendType(Backend backend)
Backend
&
getInferenceEngineBackendTypeParam
()
{
static
Backend
param
=
parseInferenceEngineBackendType
(
utils
::
getConfigurationParameterString
(
"OPENCV_DNN_BACKEND_INFERENCE_ENGINE_
NN_BUILDER_2019_
TYPE"
,
#if
ndef HAVE_DNN_IE_NN_BUILDER_2019
utils
::
getConfigurationParameterString
(
"OPENCV_DNN_BACKEND_INFERENCE_ENGINE_TYPE"
,
#if
def HAVE_DNN_NGRAPH
CV_DNN_BACKEND_INFERENCE_ENGINE_NGRAPH
#el
se
#el
if defined(HAVE_DNN_IE_NN_BUILDER_2019)
CV_DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_API
#else
#error "Build configuration error: nGraph or NN Builder API backend should be enabled"
#endif
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment