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

[Relay][Onnx][Frontend] Add RandomUniform converter and tests to onnx frontend. #8426

Merged
merged 9 commits into from
Jul 15, 2021

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Jul 8, 2021

This PR adds a converter for the Onnx RandomUniform operator using the recently added PRNG kernels. Note that since it's random, it's difficult to compare correctness to onnxruntime. Instead I confirm basic properties of the produced values. Please let me know if there are better tests that we could perform.

@jwfromm jwfromm requested a review from mbrookhart July 8, 2021 20:52
Copy link
Contributor

@AndrewZhaoLuo AndrewZhaoLuo left a comment

Choose a reason for hiding this comment

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

LGTM

@jwfromm
Copy link
Contributor Author

jwfromm commented Jul 9, 2021

@mbrookhart it looks like this hit a flaky GPU test for crop_and_resize, specifically nans showed up in the output. Is it possible that could happen due to your recent resize1d changes or did we just get unlucky here?

@mbrookhart
Copy link
Contributor

@jwfromm I noticed this on a couple of PRs this morning and tagged you on a fix a bit ago :D #8431

@jwfromm
Copy link
Contributor Author

jwfromm commented Jul 9, 2021

Oh neat, thanks!

@jcf94 jcf94 merged commit 11c5b6d into apache:main Jul 15, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
… frontend. (apache#8426)

* Add RandomUniform converter and tests to onnx frontend.

* Fix comments.

* Remove weird import.

* Add test against golden array.

* Retrigger CI

* Improve test comment.

* Retrigger CI.
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
… frontend. (apache#8426)

* Add RandomUniform converter and tests to onnx frontend.

* Fix comments.

* Remove weird import.

* Add test against golden array.

* Retrigger CI

* Improve test comment.

* Retrigger CI.
@jwfromm jwfromm deleted the onnx_random_uniform branch April 12, 2023 15:55
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.

5 participants