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
2864fe4e
Commit
2864fe4e
authored
May 10, 2018
by
Leyuan Wang
Committed by
Tianqi Chen
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dilation fixed for (1, 1) case (#477)
parent
d4768204
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
nnvm/python/nnvm/top/nn.py
+2
-0
No files found.
nnvm/python/nnvm/top/nn.py
View file @
2864fe4e
...
@@ -88,6 +88,8 @@ def compute_conv2d(attrs, inputs, _):
...
@@ -88,6 +88,8 @@ def compute_conv2d(attrs, inputs, _):
(
dilation_h
,
dilation_w
)
=
dilation
(
dilation_h
,
dilation_w
)
=
dilation
if
dilation_h
<
1
or
dilation_w
<
1
:
if
dilation_h
<
1
or
dilation_w
<
1
:
raise
ValueError
(
"dilation should be positive value"
)
raise
ValueError
(
"dilation should be positive value"
)
elif
dilation
==
(
1
,
1
):
kernel
=
inputs
[
1
]
elif
layout
==
"NCHW"
:
elif
layout
==
"NCHW"
:
kernel
=
topi
.
nn
.
dilate
(
inputs
[
1
],
[
1
,
1
,
dilation_h
,
dilation_w
])
kernel
=
topi
.
nn
.
dilate
(
inputs
[
1
],
[
1
,
1
,
dilation_h
,
dilation_w
])
else
:
#layout == NHWC
else
:
#layout == NHWC
...
...
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