Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration Problem of Code on Apple M1 Chip #50

Open
Elody-Chen opened this issue Oct 29, 2022 · 1 comment
Open

Migration Problem of Code on Apple M1 Chip #50

Elody-Chen opened this issue Oct 29, 2022 · 1 comment

Comments

@Elody-Chen
Copy link

Hi, in the process of testing the code, I found that the function .cuda() of this line cannot run on M1 chip. Previously, PyTorch was able to use M1 chips for GPU acceleration, but this line did not work. May I ask if you have any solutions?

@kanswer
Copy link

kanswer commented Jun 13, 2023

.cuda() cannot be used in M1 chip, instead which u should use gpu like "x = torch.ones((1024 * 12, 1024 * 12), dtype=torch.float32,device='mps')".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants