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
76ae2dc6
Commit
76ae2dc6
authored
May 15, 2019
by
Mark Rogers
Committed by
Tianqi Chen
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get list of unsupported ONNX operators (#2995)
parent
c7794564
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
nnvm/python/nnvm/frontend/onnx.py
+13
-0
python/tvm/relay/frontend/onnx.py
+13
-0
No files found.
nnvm/python/nnvm/frontend/onnx.py
View file @
76ae2dc6
...
...
@@ -830,6 +830,19 @@ class GraphProto(object):
else
:
self
.
_num_input
+=
1
self
.
_nodes
[
i_name
]
=
_sym
.
Variable
(
name
=
i_name
)
# get list of unsupported ops
convert_map
=
_get_convert_map
(
opset
)
unsupported_ops
=
set
()
for
node
in
graph
.
node
:
op_name
=
node
.
op_type
if
op_name
not
in
convert_map
and
\
op_name
!=
'Constant'
and
\
op_name
not
in
_identity_list
:
unsupported_ops
.
add
(
op_name
)
if
unsupported_ops
:
msg
=
'The following operators are not supported for frontend ONNX: '
msg
+=
', '
.
join
(
unsupported_ops
)
raise
tvm
.
error
.
OpNotImplemented
(
msg
)
# construct nodes, nodes are stored as directed acyclic graph
for
node
in
graph
.
node
:
op_name
=
node
.
op_type
...
...
python/tvm/relay/frontend/onnx.py
View file @
76ae2dc6
...
...
@@ -989,6 +989,19 @@ class GraphProto(object):
else
:
dtype
=
d_type
self
.
_nodes
[
i_name
]
=
new_var
(
i_name
,
shape
=
tshape
,
dtype
=
dtype
)
# get list of unsupported ops
convert_map
=
_get_convert_map
(
opset
)
unsupported_ops
=
set
()
for
node
in
graph
.
node
:
op_name
=
node
.
op_type
if
op_name
not
in
convert_map
and
\
op_name
!=
'Constant'
and
\
op_name
not
in
_identity_list
:
unsupported_ops
.
add
(
op_name
)
if
unsupported_ops
:
msg
=
'The following operators are not supported for frontend ONNX: '
msg
+=
', '
.
join
(
unsupported_ops
)
raise
tvm
.
error
.
OpNotImplemented
(
msg
)
# construct nodes, nodes are stored as directed acyclic graph
for
node
in
graph
.
node
:
op_name
=
node
.
op_type
...
...
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