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
7b098c9a
Commit
7b098c9a
authored
Mar 31, 2018
by
Tianqi Chen
Committed by
GitHub
Mar 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOPI] Fix x86 schedule for conv out_dtype (#1072)
parent
8065f2e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
topi/python/topi/x86/conv2d.py
+1
-0
topi/python/topi/x86/conv2d_avx_common.py
+1
-0
No files found.
topi/python/topi/x86/conv2d.py
View file @
7b098c9a
...
...
@@ -65,6 +65,7 @@ def _get_schedule_conv(wkl):
@conv2d.register
(
"cpu"
)
def
_declaration_conv
(
data
,
kernel
,
stride
,
padding
,
layout
,
out_dtype
):
out_dtype
=
data
.
dtype
if
out_dtype
is
None
else
out_dtype
target
=
tvm
.
target
.
current_target
(
allow_none
=
False
)
wkl
=
_get_workload
(
data
,
kernel
,
stride
,
padding
,
out_dtype
)
if
wkl
in
_WORKLOADS
and
'avx'
in
str
(
target
)
and
layout
==
'NCHW'
:
...
...
topi/python/topi/x86/conv2d_avx_common.py
View file @
7b098c9a
...
...
@@ -12,6 +12,7 @@ from ..nn.pad import pad
AVXConvCommonFwd
=
namedtuple
(
'AVXConvCommonFwd'
,
[
'ic_bn'
,
'oc_bn'
,
'reg_n'
,
'unroll_kw'
])
def
_declaration_conv
(
data
,
kernel
,
stride
,
padding
,
layout
,
out_dtype
):
out_dtype
=
data
.
dtype
if
out_dtype
is
None
else
out_dtype
assert
layout
==
'NCHW'
,
"only support NCHW convolution for AVX"
wkl
=
_get_workload
(
data
,
kernel
,
stride
,
padding
,
out_dtype
)
sch
=
_get_schedule
(
wkl
)
...
...
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