Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
769544ad
Commit
769544ad
authored
7 years ago
by
Leyuan Wang
Committed by
Tianqi Chen
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
conv2d schedule fall back warning fixed (#450)
parent
220fa040
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
topi/python/topi/cuda/conv2d_nchw.py
+8
-11
8 additions, 11 deletions
topi/python/topi/cuda/conv2d_nchw.py
with
8 additions
and
11 deletions
topi/python/topi/cuda/conv2d_nchw.py
+
8
−
11
View file @
769544ad
...
...
@@ -5,7 +5,7 @@ from .. import util
def
conv2d_224_3_64
(
s
,
temp_S
,
Filter_S
,
Out
,
Out_L
):
"""
Schedule conv2d for specific feature_in_out_filter pattern
"""
# sheduler params
# s
c
heduler params
ofactor
=
16
hfactor
=
2
ow_size
=
util
.
get_const_int
(
Out
.
shape
[
3
])
...
...
@@ -102,7 +102,7 @@ def conv2d_56_64_128(s, temp_S, Filter_S, Out, Out_L, flag):
s
[
Filter_S
].
bind
(
ioc
,
thread_y
)
s
[
Filter_S
].
bind
(
ii
,
thread_x
)
else
:
# sheduler params
# s
c
heduler params
num_thread
=
8
vthread
=
2
opart2
=
4
...
...
@@ -145,11 +145,9 @@ def conv2d_56_64_128(s, temp_S, Filter_S, Out, Out_L, flag):
ic
,
dh
,
dw
=
s
[
Out_L
].
op
.
reduce_axis
oic
,
iic
=
s
[
Out_L
].
split
(
ic
,
factor
=
ifactor
)
s
[
Out_L
].
reorder
(
oic
,
dh
,
dw
,
iic
,
h
,
w
)
s
[
Out_L
].
fuse
(
iic
,
dw
)
dh
=
s
[
Out_L
].
fuse
(
dh
,
oic
)
s
[
temp_S
].
compute_at
(
s
[
Out_L
],
dh
)
s
[
Filter_S
].
compute_at
(
s
[
Out_L
],
dh
)
oic
=
s
[
Out_L
].
fuse
(
dh
,
oic
)
s
[
temp_S
].
compute_at
(
s
[
Out_L
],
oic
)
s
[
Filter_S
].
compute_at
(
s
[
Out_L
],
oic
)
#schedule temp_S shared mem load
i
,
ic
,
h
,
w
=
s
[
temp_S
].
op
.
axis
...
...
@@ -170,7 +168,6 @@ def conv2d_56_64_128(s, temp_S, Filter_S, Out, Out_L, flag):
ic
,
dh
,
dw
=
s
[
Out_L
].
op
.
reduce_axis
oic
,
iic
=
s
[
Out_L
].
split
(
ic
,
factor
=
ifactor
)
s
[
Out_L
].
reorder
(
oic
,
dh
,
dw
,
iic
,
h
,
w
)
# dh = s[Out_L].fuse(dh, oic)
s
[
temp_S
].
compute_at
(
s
[
Out_L
],
oic
)
s
[
Filter_S
].
compute_at
(
s
[
Out_L
],
dw
)
...
...
@@ -192,7 +189,7 @@ def conv2d_56_64_128(s, temp_S, Filter_S, Out, Out_L, flag):
def
conv2d_14_256_256
(
s
,
Filter
,
temp_S
,
Filter_S
,
Out
,
Out_L
):
"""
Schedule conv2d for specific feature_in_out_filter pattern
"""
if
util
.
get_const_int
(
Filter
.
shape
[
1
])
==
256
:
# sheduler params
# s
c
heduler params
vthread_x
=
util
.
get_const_int
(
Out
.
shape
[
3
])
num_thread_x
=
64
ofactor
=
8
...
...
@@ -235,7 +232,7 @@ def conv2d_14_256_256(s, Filter, temp_S, Filter_S, Out, Out_L):
s
[
Filter_S
].
storage_align
(
s
[
Filter_S
].
op
.
axis
[
0
],
2
,
1
)
else
:
# sheduler params
# s
c
heduler params
vthread_x
=
util
.
get_const_int
(
Out
.
shape
[
2
])
num_thread_x
=
16
num_thread_y
=
util
.
get_const_int
(
Out
.
shape
[
3
])
...
...
@@ -283,7 +280,7 @@ def conv2d_14_256_256(s, Filter, temp_S, Filter_S, Out, Out_L):
def
conv2d_56_64_64
(
s
,
Filter
,
temp_S
,
Filter_S
,
Out
,
Out_L
):
"""
Schedule conv2d for specific feature_in_out_filter pattern
"""
# sheduler params
# s
c
heduler params
num_thread
=
8
vthread
=
2
opart2
=
4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment