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