Skip to content

Commit

Permalink
Fix MPS availability check (#13947)
Browse files Browse the repository at this point in the history
Co-authored-by: Rohit Gupta <[email protected]>
  • Loading branch information
akihironitta and rohitgr7 authored Aug 2, 2022
1 parent d8e5e7f commit af07e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytorch_lightning/accelerators/mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# For using the `MPSAccelerator`, user's machine should have `torch>=1.12`, Metal programming framework and
# the ARM-based Apple Silicon processors.
_MPS_AVAILABLE = _TORCH_GREATER_EQUAL_1_12 and torch.backends.mps.is_available() and platform.platform() == "arm"
_MPS_AVAILABLE = _TORCH_GREATER_EQUAL_1_12 and torch.backends.mps.is_available() and platform.processor() == "arm"


class MPSAccelerator(Accelerator):
Expand Down

0 comments on commit af07e75

Please sign in to comment.