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

Fix torch frontend svds functions #28829

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Daniel4078
Copy link
Contributor

@Daniel4078 Daniel4078 commented Sep 28, 2024

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

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

Socials

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
Copy link
Contributor

@Sam-Armstrong Sam-Armstrong left a 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?

@Daniel4078
Copy link
Contributor Author

@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.

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.

Fix Frontend Failing Test: torch - blas_and_lapack_ops.svd
2 participants