fix mps miss import

This commit is contained in:
KarryCharon 2023-07-12 10:06:34 +08:00
parent 2b2a1474f7
commit 3e2309f149

View File

@ -49,6 +49,7 @@ except:
try: try:
if torch.backends.mps.is_available(): if torch.backends.mps.is_available():
cpu_state = CPUState.MPS cpu_state = CPUState.MPS
import torch.mps
except: except:
pass pass