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
70f0a169
Commit
70f0a169
authored
Aug 25, 2019
by
Neo Chien
Committed by
hlu1
Aug 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code comment of operators (#3830)
parent
d05893b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
python/tvm/relay/frontend/onnx.py
+11
-5
No files found.
python/tvm/relay/frontend/onnx.py
View file @
70f0a169
...
@@ -222,6 +222,8 @@ class ConvTranspose(OnnxOpConverter):
...
@@ -222,6 +222,8 @@ class ConvTranspose(OnnxOpConverter):
class
Div
(
Elemwise
):
class
Div
(
Elemwise
):
""" Operator converter for Divide.
"""
name
=
'divide'
name
=
'divide'
...
@@ -307,6 +309,8 @@ class MaxPool(Pool):
...
@@ -307,6 +309,8 @@ class MaxPool(Pool):
custom_check
=
dimension_constraint
())(
inputs
,
attr
,
params
)
custom_check
=
dimension_constraint
())(
inputs
,
attr
,
params
)
class
Mul
(
Elemwise
):
class
Mul
(
Elemwise
):
""" Operator converter for Multiply.
"""
name
=
'multiply'
name
=
'multiply'
...
@@ -495,6 +499,8 @@ class Softsign(OnnxOpConverter):
...
@@ -495,6 +499,8 @@ class Softsign(OnnxOpConverter):
class
Sub
(
Elemwise
):
class
Sub
(
Elemwise
):
""" Operator converter for Subtract.
"""
name
=
'subtract'
name
=
'subtract'
...
@@ -768,27 +774,27 @@ class Reduce(OnnxOpConverter):
...
@@ -768,27 +774,27 @@ class Reduce(OnnxOpConverter):
return
AttrCvt
(
cls
.
name
)(
inputs
,
attr
)
return
AttrCvt
(
cls
.
name
)(
inputs
,
attr
)
class
ReduceMax
(
Reduce
):
class
ReduceMax
(
Reduce
):
""" Operator converter for
Arg
Max.
""" Operator converter for
Reduce
Max.
"""
"""
name
=
'max'
name
=
'max'
class
ReduceMin
(
Reduce
):
class
ReduceMin
(
Reduce
):
""" Operator converter for
ArgMax
.
""" Operator converter for
ReduceMin
.
"""
"""
name
=
'min'
name
=
'min'
class
ReduceSum
(
Reduce
):
class
ReduceSum
(
Reduce
):
""" Operator converter for
ArgMax
.
""" Operator converter for
ReduceSum
.
"""
"""
name
=
'sum'
name
=
'sum'
class
ReduceMean
(
Reduce
):
class
ReduceMean
(
Reduce
):
""" Operator converter for
ArgMax
.
""" Operator converter for
ReduceMean
.
"""
"""
name
=
'mean'
name
=
'mean'
class
ReduceProd
(
Reduce
):
class
ReduceProd
(
Reduce
):
""" Operator converter for
ArgMax
.
""" Operator converter for
ReduceProd
.
"""
"""
name
=
'prod'
name
=
'prod'
...
...
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