import torch print(torch.backends.mps.is_available()) # Should return True print(torch.backends.mps.is_built()) # Should return True