Skip to content

[Frontend][ONNX] Add onnx support for LessOrEqual, GreaterOrEqual#8626

Closed
SamKG wants to merge 1 commit into
apache:mainfrom
SamKG:main
Closed

[Frontend][ONNX] Add onnx support for LessOrEqual, GreaterOrEqual#8626
SamKG wants to merge 1 commit into
apache:mainfrom
SamKG:main

Conversation

@SamKG

@SamKG SamKG commented Aug 3, 2021

Copy link
Copy Markdown

This adds support for LessOrEqual (<=) and GreaterOrEqual (>=) ops for ONNX frontend, as introduced in opset 12.

@mbrookhart mbrookhart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@SamKG

SamKG commented Aug 3, 2021

Copy link
Copy Markdown
Author

LGTM. Thanks!

thanks!
I wanted to also give adding random ops a try (#8632), but this isn't quite as simple.
Any advice on how to approach it would be appreciated.

@SamKG SamKG force-pushed the main branch 2 times, most recently from db2af02 to e09525b Compare August 3, 2021 17:36
@SamKG

SamKG commented Aug 3, 2021

Copy link
Copy Markdown
Author

Could a maintainer please re-run the workflow? I fixed a small typo in the commit

@AndrewZhaoLuo AndrewZhaoLuo left a comment

Copy link
Copy Markdown
Contributor

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.

"Exp": Renamer("exp"),
"Greater": Greater.get_converter(opset),
"Less": Less.get_converter(opset),
"LessOrEqual": LessOrEqual.get_converter(opset),

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. see #8967

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")

Copy link
Copy Markdown
Contributor

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?

@AndrewZhaoLuo

Copy link
Copy Markdown
Contributor

@SamKG do you plan to try to get this merged?

@SamKG

SamKG commented Sep 8, 2021

Copy link
Copy Markdown
Author

@SamKG do you plan to try to get this merged?

Hi Andrew,
Yes, I will try to get it merged this weekend - been a bit busy.

@areusch areusch removed their request for review September 14, 2021 15:04
@AndrewZhaoLuo

Copy link
Copy Markdown
Contributor

@SamKG do you mind if I open up an identical PR and try to merge that? Might need this in soon

@SamKG

SamKG commented Sep 20, 2021 via email

Copy link
Copy Markdown
Author

@SamKG

SamKG commented Sep 22, 2021

Copy link
Copy Markdown
Author

Closed as #9066 handles this ( thanks @AndrewZhaoLuo )

@SamKG SamKG closed this Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants