We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8aa7ee + bab3daa commit 8c715c5Copy full SHA for 8c715c5
generate.py
@@ -16,7 +16,7 @@
16
def device_sync(device):
17
if "cuda" in device:
18
torch.cuda.synchronize(device)
19
- elif "cpu" in device:
+ elif ("cpu" in device) or ("mps" in device):
20
pass
21
else:
22
print(f"device={device} is not yet suppported")
0 commit comments