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
c13a5ce2
Commit
c13a5ce2
authored
Oct 04, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15622 from dkurt:enet_ie_cpu
parents
22d86116
e35fd463
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
pooling_layer.cpp
modules/dnn/src/layers/pooling_layer.cpp
+2
-0
test_onnx_importer.cpp
modules/dnn/test/test_onnx_importer.cpp
+3
-3
test_torch_importer.cpp
modules/dnn/test/test_torch_importer.cpp
+9
-3
No files found.
modules/dnn/src/layers/pooling_layer.cpp
View file @
c13a5ce2
...
...
@@ -162,6 +162,8 @@ public:
{
if
(
backendId
==
DNN_BACKEND_INFERENCE_ENGINE
)
{
if
(
computeMaxIdx
)
return
false
;
#ifdef HAVE_INF_ENGINE
if
(
kernel_size
.
size
()
==
3
)
return
preferableTarget
==
DNN_TARGET_CPU
;
...
...
modules/dnn/test/test_onnx_importer.cpp
View file @
c13a5ce2
...
...
@@ -86,8 +86,8 @@ TEST_P(Test_ONNX_layers, InstanceNorm)
TEST_P
(
Test_ONNX_layers
,
MaxPooling
)
{
testONNXModels
(
"maxpooling"
);
testONNXModels
(
"two_maxpooling"
);
testONNXModels
(
"maxpooling"
,
npy
,
0
,
0
,
false
,
false
);
testONNXModels
(
"two_maxpooling"
,
npy
,
0
,
0
,
false
,
false
);
}
TEST_P
(
Test_ONNX_layers
,
Convolution
)
...
...
@@ -212,7 +212,7 @@ TEST_P(Test_ONNX_layers, MaxPooling3D)
#endif
if
(
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
testONNXModels
(
"max_pool3d"
);
testONNXModels
(
"max_pool3d"
,
npy
,
0
,
0
,
false
,
false
);
}
TEST_P
(
Test_ONNX_layers
,
AvePooling3D
)
...
...
modules/dnn/test/test_torch_importer.cpp
View file @
c13a5ce2
...
...
@@ -337,9 +337,15 @@ TEST_P(Test_Torch_nets, ENet_accuracy)
{
applyTestTag
(
target
==
DNN_TARGET_CPU
?
""
:
CV_TEST_TAG_MEMORY_512MB
);
checkBackend
();
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
||
(
backend
==
DNN_BACKEND_OPENCV
&&
target
==
DNN_TARGET_OPENCL_FP16
))
applyTestTag
(
target
==
DNN_TARGET_OPENCL
?
CV_TEST_TAG_DNN_SKIP_IE_OPENCL
:
CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16
);
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
==
DNN_TARGET_OPENCL_FP16
)
throw
SkipTestException
(
""
);
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
!=
DNN_TARGET_CPU
)
{
if
(
target
==
DNN_TARGET_OPENCL_FP16
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16
);
if
(
target
==
DNN_TARGET_OPENCL
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_OPENCL
);
if
(
target
==
DNN_TARGET_MYRIAD
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_MYRIAD
);
throw
SkipTestException
(
""
);
}
Net
net
;
{
...
...
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