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
ef5d921e
Commit
ef5d921e
authored
Nov 15, 2018
by
Dmitry Kurtaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Vulkan's max pooling in case of no output indices
parent
8409aa9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
op_pool.cpp
modules/dnn/src/vkcom/src/op_pool.cpp
+4
-10
No files found.
modules/dnn/src/vkcom/src/op_pool.cpp
View file @
ef5d921e
...
...
@@ -90,16 +90,10 @@ bool OpPool::forward(std::vector<Tensor>& ins,
std
::
vector
<
Tensor
>&
blobs
,
std
::
vector
<
Tensor
>&
outs
)
{
for
(
size_t
ii
=
0
;
ii
<
ins
.
size
();
ii
++
)
{
Tensor
&
inpMat
=
ins
[
ii
];
int
out_index
=
(
pool_type_
==
kPoolTypeMax
)
?
2
:
1
;
Tensor
&
outMat
=
outs
[
out_index
*
ii
];
Tensor
maskMat
=
(
pool_type_
==
kPoolTypeMax
)
?
outs
[
2
*
ii
+
1
]
:
Tensor
();
if
(
!
forward
(
inpMat
,
outMat
,
maskMat
))
return
false
;
}
return
true
;
Tensor
&
inpMat
=
ins
[
0
];
Tensor
&
outMat
=
outs
[
0
];
Tensor
maskMat
=
outs
.
size
()
>
1
?
outs
[
1
]
:
Tensor
();
return
forward
(
inpMat
,
outMat
,
maskMat
);
}
bool
OpPool
::
forward
(
Tensor
&
in
,
Tensor
&
out
,
Tensor
&
mask
)
...
...
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