no mps
This commit is contained in:
parent
e8419354f4
commit
bfad4547ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ plots*
|
||||
*.csv
|
||||
output/
|
||||
.requirements_installed
|
||||
__pycache__/
|
||||
|
||||
2
eval.py
2
eval.py
@ -38,8 +38,6 @@ def get_device(requested_device):
|
||||
return torch.device(requested_device)
|
||||
if torch.cuda.is_available():
|
||||
return torch.device("cuda")
|
||||
if torch.backends.mps.is_available():
|
||||
return torch.device("mps")
|
||||
return torch.device("cpu")
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user