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
3c895464
Commit
3c895464
authored
Oct 29, 2017
by
Leyuan Wang
Committed by
Tianqi Chen
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vgg16 workload error fixed (#598)
parent
88662130
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
topi/python/topi/cuda/conv2d_nchw.py
+11
-8
topi/tests/python/test_topi_conv2d_nchw.py
+1
-0
No files found.
topi/python/topi/cuda/conv2d_nchw.py
View file @
3c895464
...
...
@@ -80,6 +80,9 @@ def conv2d_56_64_128(s, temp, temp_R, temp_S, Filter_S, Out, Out_L, flag):
if
mark
%
i
==
0
and
vthread_x
>
0
:
num_thread_x
=
i
break
if
num_thread_x
*
vthread_x
>
128
:
num_thread_x
=
8
vthread_x
=
8
num_thread_y
=
8
vthread_y
=
2
ifactor
=
8
...
...
@@ -92,20 +95,20 @@ def conv2d_56_64_128(s, temp, temp_R, temp_S, Filter_S, Out, Out_L, flag):
thread_yz
=
tvm
.
thread_axis
((
0
,
vthread_y
),
"vthread"
,
name
=
"vy"
)
i
,
oc
,
h
,
w
=
s
[
Out
]
.
op
.
axis
w
=
s
[
Out
]
.
fuse
(
h
,
w
)
o
w
,
iw
=
s
[
Out
]
.
split
(
w
,
factor
=
num_thread_x
*
vthread_x
)
ow
,
iw
=
s
[
Out
]
.
split
(
w
,
factor
=
num_thread_x
)
o
h
,
ih
=
s
[
Out
]
.
split
(
h
,
factor
=
vthread_x
)
ooc
,
ioc
=
s
[
Out
]
.
split
(
oc
,
factor
=
num_thread_y
*
vthread_y
)
oiw
,
iiw
=
s
[
Out
]
.
split
(
iw
,
nparts
=
vthread_x
)
oioc
,
iioc
=
s
[
Out
]
.
split
(
ioc
,
nparts
=
vthread_y
)
s
[
Out
]
.
reorder
(
i
,
ooc
,
ow
,
oioc
,
oiw
,
iioc
,
iiw
)
s
[
Out
]
.
bind
(
iiw
,
thread_x
)
s
[
Out
]
.
reorder
(
i
,
ooc
,
oh
,
ow
,
oioc
,
ih
,
iioc
,
iw
)
oh
=
s
[
Out
]
.
fuse
(
oh
,
ow
)
s
[
Out
]
.
bind
(
iw
,
thread_x
)
s
[
Out
]
.
bind
(
iioc
,
thread_y
)
s
[
Out
]
.
bind
(
oiw
,
thread_xz
)
s
[
Out
]
.
bind
(
ih
,
thread_xz
)
s
[
Out
]
.
bind
(
oioc
,
thread_yz
)
s
[
Out
]
.
bind
(
o
w
,
block_x
)
s
[
Out
]
.
bind
(
o
h
,
block_x
)
s
[
Out
]
.
bind
(
ooc
,
block_y
)
s
[
Out_L
]
.
compute_at
(
s
[
Out
],
i
i
w
)
s
[
Out_L
]
.
compute_at
(
s
[
Out
],
iw
)
# schedule Out_L local write
i
,
oc
,
h
,
w
=
s
[
Out_L
]
.
op
.
axis
...
...
topi/tests/python/test_topi_conv2d_nchw.py
View file @
3c895464
...
...
@@ -68,6 +68,7 @@ def test_conv2d_nchw():
verify_conv2d_nchw
(
1
,
256
,
14
,
512
,
3
,
2
,
1
)
verify_conv2d_nchw
(
1
,
256
,
14
,
512
,
1
,
2
,
0
)
verify_conv2d_nchw
(
1
,
512
,
7
,
512
,
3
,
1
,
1
)
verify_conv2d_nchw
(
1
,
128
,
122
,
128
,
3
,
1
,
1
)
if
__name__
==
"__main__"
:
test_conv2d_nchw
()
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