-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Implement saturate_cast in numpy helper #7143
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
Conversation
justinchuby
commented
Jul 17, 2025
- Rename saturating_cast to saturate_cast to match conventions in other frameworks.
- Make the function work on all onnx supported dtypes.
Signed-off-by: Justin Chu <[email protected]>
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.
You can commit the suggested changes from lintrunner.
Signed-off-by: Justin Chu <[email protected]>
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7143 +/- ##
==========================================
- Coverage 53.64% 53.64% -0.01%
==========================================
Files 508 508
Lines 32174 32177 +3
Branches 2970 2971 +1
==========================================
Hits 17260 17260
- Misses 14118 14120 +2
- Partials 796 797 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Justin Chu <[email protected]>
- Rename saturating_cast to saturate_cast to match conventions in other frameworks. - Make the function work on all onnx supported dtypes. --------- Signed-off-by: Justin Chu <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: justinchuby <[email protected]> Signed-off-by: Alexander Poulson <[email protected]>