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
3a32729c
Commit
3a32729c
authored
Oct 09, 2019
by
Animesh Jain
Committed by
Yizhi Liu
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOPI][X86] Pool operator parallel support. (#4090)
parent
1c56c722
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
topi/python/topi/x86/pooling.py
+7
-0
No files found.
topi/python/topi/x86/pooling.py
View file @
3a32729c
...
...
@@ -98,6 +98,13 @@ def schedule_pool(outs, layout):
traverse
(
tensor
.
op
)
# schedule pool
elif
OP
.
tag
.
startswith
(
'pool'
):
# Average pool accumulation and division happens in different for loops (#3607).
# To ensure good parallel support, apply multi-threading on the second loop.
if
OP
!=
outs
[
0
]
.
op
:
output
=
outs
[
0
]
output_fused
=
s
[
output
]
.
fuse
(
output
.
op
.
axis
[
0
],
output
.
op
.
axis
[
1
])
s
[
output
]
.
parallel
(
output_fused
)
PaddedInput
=
OP
.
input_tensors
[
0
]
Pool
=
OP
.
output
(
0
)
_schedule
(
PaddedInput
,
Pool
)
...
...
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