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
714b3836
Commit
714b3836
authored
Mar 25, 2019
by
Dmitry Kurtaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend LRN layer support with IE backend
parent
097fc1a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lrn_layer.cpp
modules/dnn/src/layers/lrn_layer.cpp
+1
-1
test_halide_layers.cpp
modules/dnn/test/test_halide_layers.cpp
+4
-0
No files found.
modules/dnn/src/layers/lrn_layer.cpp
View file @
714b3836
...
...
@@ -91,7 +91,7 @@ public:
virtual
bool
supportBackend
(
int
backendId
)
CV_OVERRIDE
{
if
(
backendId
==
DNN_BACKEND_INFERENCE_ENGINE
)
return
(
bias
==
1
)
&&
(
preferableTarget
!=
DNN_TARGET_MYRIAD
||
type
==
SPATIAL_NRM
)
;
return
bias
==
1
;
return
backendId
==
DNN_BACKEND_OPENCV
||
backendId
==
DNN_BACKEND_HALIDE
;
}
...
...
modules/dnn/test/test_halide_layers.cpp
View file @
714b3836
...
...
@@ -228,6 +228,10 @@ TEST_P(LRN, Accuracy)
Backend
backendId
=
get
<
0
>
(
get
<
5
>
(
GetParam
()));
Target
targetId
=
get
<
1
>
(
get
<
5
>
(
GetParam
()));
if
((
inSize
.
width
==
5
||
inSize
.
height
==
5
)
&&
targetId
==
DNN_TARGET_MYRIAD
&&
nrmType
==
"ACROSS_CHANNELS"
)
throw
SkipTestException
(
"This test case is disabled"
);
LayerParams
lp
;
lp
.
set
(
"norm_region"
,
nrmType
);
lp
.
set
(
"local_size"
,
localSize
);
...
...
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