File size: 85 Bytes
0b93f6d
 
 
 
1
2
3
4
import torch

if not torch.backends.mps.is_available():
    print("MPS is available")