Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
88daa2bc
Commit
88daa2bc
authored
May 05, 2019
by
Lianmin Zheng
Committed by
Yizhi Liu
May 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOPI] Fix mali conv2d performance regression (#3131)
* [TOPI] fix mali conv * fix typo * address comments
parent
48c92376
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
python/tvm/autotvm/tophub.py
+1
-1
topi/python/topi/mali/conv2d.py
+5
-3
No files found.
python/tvm/autotvm/tophub.py
View file @
88daa2bc
...
@@ -42,7 +42,7 @@ PACKAGE_VERSION = {
...
@@ -42,7 +42,7 @@ PACKAGE_VERSION = {
'cuda'
:
"v0.04"
,
'cuda'
:
"v0.04"
,
'rocm'
:
"v0.02"
,
'rocm'
:
"v0.02"
,
'opencl'
:
"v0.02"
,
'opencl'
:
"v0.02"
,
'mali'
:
"v0.0
4
"
,
'mali'
:
"v0.0
5
"
,
'vta'
:
"v0.04"
,
'vta'
:
"v0.04"
,
}
}
...
...
topi/python/topi/mali/conv2d.py
View file @
88daa2bc
...
@@ -352,9 +352,11 @@ def _decl_winograd(cfg, data, kernel, strides, padding, dilation, layout, out_dt
...
@@ -352,9 +352,11 @@ def _decl_winograd(cfg, data, kernel, strides, padding, dilation, layout, out_dt
# unpack output
# unpack output
output
=
tvm
.
compute
((
N
,
CO
,
H
,
W
),
lambda
n
,
co
,
h
,
w
:
output
=
tvm
.
compute
((
N
,
CO
,
H
,
W
),
lambda
n
,
co
,
h
,
w
:
Y
[
co
][
n
*
nH
*
nW
+
(
h
//
m
)
*
nW
+
w
//
m
][
h
%
m
][
w
%
m
]
Y
[
co
][
n
*
nH
*
nW
+
(
h
//
m
)
*
nW
+
w
//
m
][
h
%
m
][
w
%
m
]
# thw following term is used to make the padding effective,
# The following hack term is used to make the padding in batch gemm ("M")
# otherwise the padding will be eliminated by bound inference
# effective, otherwise the padding will be eliminated by bound inference.
+
tvm
.
const
(
0
,
out_dtype
)
*
M
[
alpha
-
1
][
alpha
-
1
][
CO
-
1
][
P_round
-
1
],
# Use `tvm.expr.Mul` instead of `*` to avoid issues in const folding.
+
tvm
.
expr
.
Mul
(
tvm
.
const
(
0
,
out_dtype
),
M
[
alpha
-
1
][
alpha
-
1
][
CO
-
1
][
P_round
-
1
]),
name
=
'output'
,
tag
=
'winograd_conv2d_output'
)
name
=
'output'
,
tag
=
'winograd_conv2d_output'
)
# we have to manually assign effective GFLOP for winograd
# we have to manually assign effective GFLOP for winograd
...
...
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