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
c729fbd6
Commit
c729fbd6
authored
7 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10925 from pengli:dnn
parents
5caf6244
608968aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
convolution_layer.cpp
modules/dnn/src/layers/convolution_layer.cpp
+2
-2
test_tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp
+4
-0
No files found.
modules/dnn/src/layers/convolution_layer.cpp
View file @
c729fbd6
...
...
@@ -1390,8 +1390,8 @@ public:
{
int
total
=
outGroupCn
*
decnBlob
.
cols
;
int
index
=
0
;
int
height_col
=
(
outH
+
2
*
pad
.
height
-
kernel
.
height
)
/
stride
.
height
+
1
;
int
width_col
=
(
outW
+
2
*
pad
.
width
-
kernel
.
width
)
/
stride
.
width
+
1
;
int
height_col
=
inpH
;
int
width_col
=
inpW
;
int
coeff_h
=
(
1
-
stride
.
height
*
kernel
.
width
*
height_col
)
*
width_col
;
int
coeff_w
=
(
1
-
stride
.
width
*
height_col
*
width_col
);
...
...
This diff is collapsed.
Click to expand it.
modules/dnn/test/test_tf_importer.cpp
View file @
c729fbd6
...
...
@@ -181,6 +181,10 @@ TEST(Test_TensorFlow, deconvolution)
OCL_TEST
(
Test_TensorFlow
,
deconvolution
)
{
runTensorFlowNet
(
"deconvolution"
,
DNN_TARGET_OPENCL
);
runTensorFlowNet
(
"deconvolution_same"
,
DNN_TARGET_OPENCL
);
runTensorFlowNet
(
"deconvolution_stride_2_same"
,
DNN_TARGET_OPENCL
);
runTensorFlowNet
(
"deconvolution_adj_pad_valid"
,
DNN_TARGET_OPENCL
);
runTensorFlowNet
(
"deconvolution_adj_pad_same"
,
DNN_TARGET_OPENCL
);
}
TEST
(
Test_TensorFlow
,
matmul
)
...
...
This diff is collapsed.
Click to expand it.
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