-
Notifications
You must be signed in to change notification settings - Fork 29
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] Add support for while loops in autograph #318
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #318 +/- ##
==========================================
+ Coverage 99.56% 99.62% +0.05%
==========================================
Files 42 42
Lines 7410 7438 +28
Branches 433 434 +1
==========================================
+ Hits 7378 7410 +32
+ Misses 16 14 -2
+ Partials 16 14 -2
☔ View full report in Codecov by Sentry. |
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.
Thanks @grwlf, looking good so far 🚀
Some preliminary comments:
Oh, this PR will also need to update the newly added autograph docs :) |
I agree, but in this case might argue for doing it as a separate PR - just because the docs still pin to |
This is tricky, because we can't prevent new functions from not showing up in the docs either 🤔 (well we probably could but ...) |
My recommendation would be:
On read the docs, |
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
@grwlf Can you open a PR that updates the autograph docs (to be merged later)? |
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.
Thanks @grwlf, just a few points to resolve and we can merge this 👍
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
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.
Great work 💯
Add support for while-loops in the
@qjit(autograph=True)
modeWe replace the while-loops with
catalyst.while_loop
calls on a best-efforts basis. In case of errors we fallback to the unrolled loop path. A decision was made to not warn by default that the fallback has been used.[sc-41300]