-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
[BE] Introduce lapack_work_to_int
function
#149682
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/149682
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0496b6d with merge base a268c29 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
lapack_work_to_int
function
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
That could be used to safely cast floating values to int by adding an ULP, which is a followup after #146456 Fixes #149591 (Not adding unittest as it's just going to be too slow) Test plan: ``` % python3 -c "import torch; torch.pinverse(torch.rand(50000, 8193))" ``` Before the change errored out with ``` RuntimeError: false INTERNAL ASSERT FAILED at "pytorch/pytorch/aten/src/ATen/native/BatchLinearAlgebra.cpp":1605, please report a bug to PyTorch. linalg.svd: Argument 12 has illegal value. Most certainly there is a bug in the implementation calling the backend library. ``` Pull Request resolved: #149682 Approved by: https://github.com/wdvr
That could be used to safely cast floating values to int by adding an ULP, which is a followup after #146456
Fixes #149591
(Not adding unittest as it's just going to be too slow)
Test plan:
Before the change errored out with