-
Notifications
You must be signed in to change notification settings - Fork 27.5k
MPS ComplexDouble (complex128) Support Inconsistency #176981
Copy link
Copy link
Closed
Labels
actionablebot-triagedThis is a label only to be used by the auto triage botThis is a label only to be used by the auto triage botlow priorityWe're unlikely to get around to doing this in the near futureWe're unlikely to get around to doing this in the near futuremodule: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchmodule: error checkingBugs related to incorrect/lacking error checkingBugs related to incorrect/lacking error checkingmodule: mpsRelated to Apple Metal Performance Shaders frameworkRelated to Apple Metal Performance Shaders frameworktriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
actionablebot-triagedThis is a label only to be used by the auto triage botThis is a label only to be used by the auto triage botlow priorityWe're unlikely to get around to doing this in the near futureWe're unlikely to get around to doing this in the near futuremodule: complexRelated to complex number support in PyTorchRelated to complex number support in PyTorchmodule: error checkingBugs related to incorrect/lacking error checkingBugs related to incorrect/lacking error checkingmodule: mpsRelated to Apple Metal Performance Shaders frameworkRelated to Apple Metal Performance Shaders frameworktriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
torch.cdouble(complex128) tensors can be moved to thempsdevice without error via.to(device), but subsequent operations fail. Direct conversion tocomplex128on thempsdevice is correctly blocked by aTypeError.Reproduction
Expected Behavior
.to(device)should raise aTypeErrorwhen attempting to move acomplex128tensor to the MPS backend, as it is unsupported. Error messages should be consistent across conversion methods.Versions
PyTorch: 2.10.0
OS: macOS (Apple Silicon, MPS enabled)
Device: MPS
cc @malfet @ezyang @anjali411 @dylanbespalko @mruberry @nikitaved @amjames @kulinseth @DenisVieriu97 @jhavukainen @aditvenk