Commit 3e2309f1 authored by KarryCharon's avatar KarryCharon
Browse files

fix mps miss import

parent 2b2a1474
......@@ -49,6 +49,7 @@ except:
try:
if torch.backends.mps.is_available():
cpu_state = CPUState.MPS
import torch.mps
except:
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment