Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EZ] [ONNX] Remove unnecessary converters for greater and lesser #8967

Merged
merged 3 commits into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,22 +1611,6 @@ def _impl_v9(cls, inputs, attr, params):
return _op.scatter_nd(zeros, _op.stack([indices, indices + k], axis=0), ones, "update")


class Greater(OnnxOpConverter):
"""Operator logical greater."""

@classmethod
def _impl_v7(cls, inputs, attr, params):
return _op.greater(inputs[0], inputs[1])


class Less(OnnxOpConverter):
"""Operator logical less than."""

@classmethod
def _impl_v7(cls, inputs, attr, params):
return _op.less(inputs[0], inputs[1])


class LRN(OnnxOpConverter):
"""Operator converter for Local Response Normalization."""

Expand Down Expand Up @@ -3655,8 +3639,8 @@ def _get_convert_map(opset):
"Selu": Selu.get_converter(opset),
"Elu": Elu.get_converter(opset),
"Exp": Renamer("exp"),
"Greater": Greater.get_converter(opset),
"Less": Less.get_converter(opset),
"Greater": Renamer("greater"),
"Less": Renamer("less"),
"Log": Renamer("log"),
"Acos": Renamer("acos"),
"Acosh": Renamer("acosh"),
Expand Down