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
075b3677
Commit
075b3677
authored
Sep 04, 2018
by
nhynes
Committed by
Yizhi Liu
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename axis parameter in onnx squeeze (#1683)
* Rename axis parameter in onnx squeeze * Add test
parent
5fec9adb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nnvm/python/nnvm/frontend/onnx.py
+1
-1
nnvm/tests/python/frontend/onnx/test_forward.py
+1
-1
No files found.
nnvm/python/nnvm/frontend/onnx.py
View file @
075b3677
...
...
@@ -684,7 +684,7 @@ def _get_convert_map(opset):
'Slice'
:
Slice
.
get_converter
(
opset
),
'Transpose'
:
AttrCvt
(
'transpose'
,
{
'perm'
:
'axes'
}),
'Gather'
:
Gather
.
get_converter
(
opset
),
'Squeeze'
:
Renamer
(
'squeeze'
),
'Squeeze'
:
AttrCvt
(
'squeeze'
,
{
'axes'
:
'axis'
}
),
'Unsqueeze'
:
Unsqueeze
.
get_converter
(
opset
),
'Pad'
:
Pad
.
get_converter
(
opset
),
'Shape'
:
Shape
.
get_converter
(
opset
),
...
...
nnvm/tests/python/frontend/onnx/test_forward.py
View file @
075b3677
...
...
@@ -178,7 +178,7 @@ def test_power():
def
test_squeeze
():
in_shape
=
(
1
,
3
,
1
,
3
,
1
,
1
)
out_shape
=
(
3
,
3
)
y
=
helper
.
make_node
(
"Squeeze"
,
[
'in'
],
[
'out'
])
y
=
helper
.
make_node
(
"Squeeze"
,
[
'in'
],
[
'out'
]
,
axes
=
[
0
,
2
,
4
,
5
]
)
graph
=
helper
.
make_graph
([
y
],
'squeeze_test'
,
...
...
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