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
fcf8420a
Unverified
Commit
fcf8420a
authored
Mar 07, 2020
by
Thomas Viehmann
Committed by
GitHub
Mar 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ROCm strategy for winograd conv selection (#5001)
parent
de346493
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/tvm/relay/op/strategy/rocm.py
+3
-2
No files found.
python/tvm/relay/op/strategy/rocm.py
View file @
fcf8420a
...
@@ -48,12 +48,13 @@ def conv2d_strategy_rocm(attrs, inputs, out_type, target):
...
@@ -48,12 +48,13 @@ def conv2d_strategy_rocm(attrs, inputs, out_type, target):
wrap_topi_schedule
(
topi
.
cuda
.
schedule_conv2d_nchw
),
wrap_topi_schedule
(
topi
.
cuda
.
schedule_conv2d_nchw
),
name
=
"conv2d_nchw.cuda"
)
name
=
"conv2d_nchw.cuda"
)
_
,
_
,
kh
,
kw
=
get_const_tuple
(
kernel
.
shape
)
_
,
_
,
kh
,
kw
=
get_const_tuple
(
kernel
.
shape
)
if
kh
<=
7
and
kw
<=
7
and
kh
==
kw
and
stride_h
==
1
and
stride_w
==
1
:
if
2
<
kh
<
8
and
2
<
kw
<
8
and
kh
==
kw
and
stride_h
==
1
and
stride_w
==
1
and
\
dilation_h
==
1
and
dilation_w
==
1
:
strategy
.
add_implementation
(
strategy
.
add_implementation
(
wrap_compute_conv2d
(
topi
.
cuda
.
conv2d_nchw_winograd
),
wrap_compute_conv2d
(
topi
.
cuda
.
conv2d_nchw_winograd
),
wrap_topi_schedule
(
topi
.
cuda
.
schedule_conv2d_nchw_winograd
),
wrap_topi_schedule
(
topi
.
cuda
.
schedule_conv2d_nchw_winograd
),
name
=
"conv2d_nchw_winograd.cuda"
,
name
=
"conv2d_nchw_winograd.cuda"
,
plevel
=
1
5
)
plevel
=
5
)
elif
layout
==
"HWCN"
:
elif
layout
==
"HWCN"
:
assert
kernel_layout
==
"HWIO"
assert
kernel_layout
==
"HWIO"
strategy
.
add_implementation
(
strategy
.
add_implementation
(
...
...
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