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
153fd7ff
Commit
153fd7ff
authored
Oct 08, 2019
by
Animesh Jain
Committed by
Yizhi Liu
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AlterOpLayout][x86] NHWC to NCHWc conv support. (#4080)
parent
b5bcdbb0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
topi/python/topi/x86/conv2d_alter_op.py
+0
-2
No files found.
topi/python/topi/x86/conv2d_alter_op.py
View file @
153fd7ff
...
...
@@ -158,7 +158,6 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
return
None
return
F
.
nn
.
contrib_conv2d_nchwc_int8
(
*
copy_inputs
,
**
new_attrs
)
if
data_layout
==
'NCHW'
and
attrs
[
'kernel_layout'
]
==
'OIHW'
:
# (oc, ic, h, w) -> (OC, IC, h, w, ic, oc)
new_attrs
[
'kernel_layout'
]
=
'OIHW
%
di
%
do'
%
(
ic_bn
,
oc_bn
)
# Store altered operator's config
...
...
@@ -172,7 +171,6 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F):
if
F
.
__name__
==
'nnvm.symbol'
:
return
F
.
contrib
.
conv2d_NCHWc
(
*
copy_inputs
,
**
new_attrs
)
return
F
.
nn
.
contrib_conv2d_nchwc
(
*
copy_inputs
,
**
new_attrs
)
return
None
@conv2d_legalize.register
(
"cpu"
)
...
...
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