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
472c3146
Commit
472c3146
authored
May 07, 2019
by
Leyuan Wang
Committed by
Tianqi Chen
May 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix][TOPI] conv2d_transpose bugfix (#3138)
* deconv tests * deconv bug fixed for certain cases tests added
parent
17b60b90
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
topi/python/topi/cuda/conv2d_transpose_nchw.py
+4
-5
topi/tests/python/test_topi_conv2d_transpose_nchw.py
+1
-0
No files found.
topi/python/topi/cuda/conv2d_transpose_nchw.py
View file @
472c3146
...
...
@@ -174,7 +174,6 @@ def schedule_conv2d_transpose_nchw_cuda(cfg, outs):
by
,
vy
,
ty
,
yi
=
cfg
[
"tile_y"
]
.
apply
(
s
,
output
,
y
)
bx
,
vx
,
tx
,
xi
=
cfg
[
"tile_x"
]
.
apply
(
s
,
output
,
x
)
bf
=
s
[
output
]
.
fuse
(
n
,
bf
)
s
[
output
]
.
bind
(
bf
,
tvm
.
thread_axis
(
"blockIdx.z"
))
s
[
output
]
.
bind
(
by
,
tvm
.
thread_axis
(
"blockIdx.y"
))
s
[
output
]
.
bind
(
bx
,
tvm
.
thread_axis
(
"blockIdx.x"
))
...
...
@@ -184,7 +183,7 @@ def schedule_conv2d_transpose_nchw_cuda(cfg, outs):
s
[
output
]
.
bind
(
tf
,
tvm
.
thread_axis
(
"threadIdx.z"
))
s
[
output
]
.
bind
(
ty
,
tvm
.
thread_axis
(
"threadIdx.y"
))
s
[
output
]
.
bind
(
tx
,
tvm
.
thread_axis
(
"threadIdx.x"
))
s
[
output
]
.
reorder
(
bf
,
by
,
bx
,
vf
,
vy
,
vx
,
tf
,
ty
,
tx
,
fi
,
yi
,
xi
)
s
[
output
]
.
reorder
(
n
,
bf
,
by
,
bx
,
vf
,
vy
,
vx
,
tf
,
ty
,
tx
,
fi
,
yi
,
xi
)
s
[
OL
]
.
compute_at
(
s
[
output
],
tx
)
# tile reduction axes
...
...
@@ -193,13 +192,13 @@ def schedule_conv2d_transpose_nchw_cuda(cfg, outs):
rco
,
rcm
,
rci
=
cfg
[
'tile_rc'
]
.
apply
(
s
,
OL
,
rc
)
s
[
OL
]
.
reorder
(
rco
,
rcm
,
ry
,
rx
,
rci
,
n
,
f
,
y
,
x
)
s
[
AA
]
.
compute_at
(
s
[
OL
],
r
cm
)
s
[
WW
]
.
compute_at
(
s
[
OL
],
r
cm
)
s
[
AA
]
.
compute_at
(
s
[
OL
],
r
x
)
s
[
WW
]
.
compute_at
(
s
[
OL
],
r
x
)
# cooperative fetching
for
load
in
[
AA
,
WW
]:
n
,
f
,
y
,
x
=
s
[
load
]
.
op
.
axis
fused
=
s
[
load
]
.
fuse
(
n
,
f
,
y
,
x
)
fused
=
s
[
load
]
.
fuse
(
f
,
y
,
x
)
tz
,
fused
=
s
[
load
]
.
split
(
fused
,
nparts
=
cfg
[
"tile_f"
]
.
size
[
2
])
ty
,
fused
=
s
[
load
]
.
split
(
fused
,
nparts
=
cfg
[
"tile_y"
]
.
size
[
2
])
tx
,
fused
=
s
[
load
]
.
split
(
fused
,
nparts
=
cfg
[
"tile_x"
]
.
size
[
2
])
...
...
topi/tests/python/test_topi_conv2d_transpose_nchw.py
View file @
472c3146
...
...
@@ -74,6 +74,7 @@ def verify_conv2d_transpose_nchw(batch, in_channel, in_size, num_filter, kernel,
def
test_conv2d_transpose_nchw
():
verify_conv2d_transpose_nchw
(
1
,
3
,
224
,
32
,
3
,
1
,
0
)
verify_conv2d_transpose_nchw
(
1
,
3
,
224
,
32
,
3
,
2
,
1
)
verify_conv2d_transpose_nchw
(
1
,
3
,
224
,
32
,
2
,
2
,
0
)
verify_conv2d_transpose_nchw
(
1
,
32
,
32
,
128
,
5
,
1
,
0
)
verify_conv2d_transpose_nchw
(
1
,
32
,
32
,
128
,
5
,
2
,
1
)
...
...
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