-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Frontend][ONNX] Add onnx support for LessOrEqual
, GreaterOrEqual
#8626
Conversation
6bd58d3
to
4c06a07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
thanks! |
db2af02
to
e09525b
Compare
Could a maintainer please re-run the workflow? I fixed a small typo in the commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, btw if you need to jostle CI you can just git commit -m 'jostle ci' --allow-empty
and push.
@@ -3477,6 +3493,8 @@ def _get_convert_map(opset): | |||
"Exp": Renamer("exp"), | |||
"Greater": Greater.get_converter(opset), | |||
"Less": Less.get_converter(opset), | |||
"LessOrEqual": LessOrEqual.get_converter(opset), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just use Renamer
, you are just forwarding the inputs in the converter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E.g. see #8967
@@ -1927,8 +1927,12 @@ def verify_binary_ops(op, x, y, out_type="float32"): | |||
verify_binary_ops("Sum", x, z) | |||
verify_binary_ops("Greater", x, y, "bool") | |||
verify_binary_ops("Greater", x, z, "bool") | |||
verify_binary_ops("GreaterOrEqual", x, y, "bool") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you uncomment the appropriate tests in unsupported_onnx_tests
in this file?
@SamKG do you plan to try to get this merged? |
Hi Andrew, |
@SamKG do you mind if I open up an identical PR and try to merge that? Might need this in soon |
Go for it!
…On Mon, Sep 20, 2021, 4:39 PM AndrewZhaoLuo ***@***.***> wrote:
@SamKG <https://github.com/SamKG> do you mind if I open up an identical
PR and try to merge that? Might need this in soon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8626 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVAILYWYSIGH37GTHZDQKTUC6LZRANCNFSM5BNX456A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Closed as #9066 handles this ( thanks @AndrewZhaoLuo ) |
This adds support for
LessOrEqual
(<=
) andGreaterOrEqual
(>=
) ops for ONNX frontend, as introduced in opset 12.