-
Notifications
You must be signed in to change notification settings - Fork 5.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
Fix torch frontend svds functions #28829
base: main
Are you sure you want to change the base?
Conversation
update accepted dtype to include complex numbers add handling for out argument fix dtype and output format
added its accepted dtypes add handling to compute_uv argument fix output format
fixed testing dtype range making input symmetric positive definite matrix conduct calculation value test externally as the results are supposed to be not unique
generate symmetric positive definite input matrixes with correct dtype range to be tested add different test value methods for different output modes (full_matrices)
test for all valid input dtypes make input symmetric positive-definite matrix add different value tests for different “some” argument values
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.
@Daniel4078 there are bunch of small issues that I've pointed out here, but even after fixing these it seems like some of the test cases are failing, primarily with data type issue, such as:
AssertionError: the ground truth framework torch returned a complex128 datatype while the backend torch returned a float64 datatype
?
@Sam-Armstrong Thank you a lot for the reminder, and sorry for these silly mistakes as I mostly just copy the relavant changes from that branch to this one and forgot some details. I am currently researching on what caused this dtype problems as they are not well documented in those torch function documents. |
PR Description
fix torch frontend svd functions: linalg.svd, blas_and_lapack_ops.svd and tensor.svd
Related Issue
Closes #28769 and other uncreated issue about those related failing tests
Checklist
Socials