Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Update models.py #257

Open
wants to merge 1 commit into
base: 4.1-Stable
Choose a base branch
from

Conversation

karimkalimu
Copy link

I added an if statement for MPS device because double is not supported for MPS device
if mps:
.float()
else:
.double()
https://discuss.pytorch.org/t/typeerror-cannot-convert-a-mps-tensor-to-float64-dtype-as-the-mps-framework-doesnt-support-float64-please-use-float32-instead/180852

I added an if statement for MPS device because double is not supported for MPS device
if mps: 
     .float()
else:
     .double() 
https://discuss.pytorch.org/t/typeerror-cannot-convert-a-mps-tensor-to-float64-dtype-as-the-mps-framework-doesnt-support-float64-please-use-float32-instead/180852
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant