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
7ad3c51e
Commit
7ad3c51e
authored
Aug 28, 2017
by
Yuwei HU
Committed by
Tianqi Chen
Aug 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOPI] improve elemwise schedule (#393)
* [TOPI] improve elemwise schedule * modify fuse
parent
0560e156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
topi/python/topi/cuda/elemwise.py
+3
-10
No files found.
topi/python/topi/cuda/elemwise.py
View file @
7ad3c51e
...
@@ -23,17 +23,10 @@ def schedule_elemwise(outs):
...
@@ -23,17 +23,10 @@ def schedule_elemwise(outs):
x
=
outs
[
0
]
x
=
outs
[
0
]
num_dim
=
len
(
x
.
shape
)
num_dim
=
len
(
x
.
shape
)
block_factor
=
tvm
.
ir_pass
.
Simplify
(
x
.
op
.
output
(
0
)
.
shape
[
num_dim
-
1
])
.
value
fused
=
s
[
x
]
.
fuse
(
*
x
.
op
.
axis
)
if
block_factor
%
48
==
0
:
num_thread
=
64
block_factor
=
48
bx
,
tx
=
s
[
x
]
.
split
(
fused
,
factor
=
num_thread
)
elif
block_factor
%
32
==
0
:
block_factor
=
32
bx
,
tx
=
s
[
x
]
.
split
(
x
.
op
.
axis
[
num_dim
-
1
],
factor
=
block_factor
)
for
i
in
range
(
num_dim
-
2
,
0
,
-
1
):
bx
=
s
[
x
]
.
fuse
(
bx
,
x
.
op
.
axis
[
i
])
s
[
x
]
.
bind
(
bx
,
tvm
.
thread_axis
(
"blockIdx.x"
))
s
[
x
]
.
bind
(
bx
,
tvm
.
thread_axis
(
"blockIdx.x"
))
s
[
x
]
.
bind
(
tx
,
tvm
.
thread_axis
(
"threadIdx.x"
))
s
[
x
]
.
bind
(
tx
,
tvm
.
thread_axis
(
"threadIdx.x"
))
return
s
return
s
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