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
236d7ef0
Commit
236d7ef0
authored
Mar 01, 2019
by
eqy
Committed by
Tianqi Chen
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOPI][Relay] Fix default `out_dtype` for `conv2d_NCHWc` and Relay (#2707)
parent
8f5c27bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
topi/python/topi/x86/conv2d.py
+2
-1
No files found.
topi/python/topi/x86/conv2d.py
View file @
236d7ef0
...
@@ -294,6 +294,7 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
...
@@ -294,6 +294,7 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
padding
=
attrs
.
get_int_tuple
(
"padding"
)
padding
=
attrs
.
get_int_tuple
(
"padding"
)
strides
=
attrs
.
get_int_tuple
(
"strides"
)
strides
=
attrs
.
get_int_tuple
(
"strides"
)
dilation
=
attrs
.
get_int_tuple
(
"dilation"
)
dilation
=
attrs
.
get_int_tuple
(
"dilation"
)
out_dtype
=
attrs
[
"out_dtype"
]
layout_name
=
'layout'
if
F
==
sym
else
'data_layout'
layout_name
=
'layout'
if
F
==
sym
else
'data_layout'
...
@@ -301,7 +302,7 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
...
@@ -301,7 +302,7 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
kh
,
kw
=
attrs
.
get_int_tuple
(
"kernel_size"
)
kh
,
kw
=
attrs
.
get_int_tuple
(
"kernel_size"
)
dtype
=
data
.
dtype
dtype
=
data
.
dtype
out_dtype
=
dtype
if
attrs
[
"out_dtype"
]
==
"same"
else
attrs
[
"out_dtype"
]
out_dtype
=
dtype
if
out_dtype
in
(
"same"
,
""
)
else
out_dtype
is_depthwise
=
groups
==
in_channel
and
groups
==
out_channel
is_depthwise
=
groups
==
in_channel
and
groups
==
out_channel
# only optimize for NCHW
# only optimize for 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