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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update torch frontend tensor.svd's accepted dtypes
Daniel4078 authored Sep 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fdd7e00216e0271013703c2a11b666cb5c2c4fc9
14 changes: 13 additions & 1 deletion ivy/functional/frontends/torch/tensor.py
Original file line number Diff line number Diff line change
@@ -2109,7 +2109,19 @@ def adjoint(self):
def conj(self):
return torch_frontend.conj(self)

@with_unsupported_dtypes({"2.2 and below": ("float16", "bfloat16")}, "torch")
@with_supported_dtypes(
{
"2.2 and below": (
"float64",
"float32",
"half",
"complex32",
"complex64",
"complex128",
)
},
"torch",
)
def svd(self, some=True, compute_uv=True, *, out=None):
return torch_frontend.svd(self, some=some, compute_uv=compute_uv, out=out)