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

MPS support #42

Open
akorzh opened this issue Feb 5, 2024 · 2 comments
Open

MPS support #42

akorzh opened this issue Feb 5, 2024 · 2 comments

Comments

@akorzh
Copy link

akorzh commented Feb 5, 2024

i tried to run it on MPS, and hit some issue in decode that in 1j * y one matrix is complex and other isn't which triggered assert in mps backend: binarygemm. Any ideas how can i solve this?

@akorzh
Copy link
Author

akorzh commented Feb 6, 2024

---> 70 S = mag * (x + 1j * y)
71 audio = self.istft(S)
72 return audio

RuntimeError: c10::isComplexType(input.scalar_type()) && c10::isComplexType(other.scalar_type()) INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/native/mps/operations/BinaryKernel.mm":340, please report a bug to PyTorch.

@kgoba
Copy link

kgoba commented Mar 1, 2024

Perhaps you can express the line as S = mag * torch.complex(x, y)? As per https://pytorch.org/docs/stable/generated/torch.complex.html

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

No branches or pull requests

2 participants