-
Notifications
You must be signed in to change notification settings - Fork 478
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
Cannot move tensors to cpu when in a xmp spawn process #8271
Comments
do you have a small repo code? |
You can clone this repo here |
Were you able to reproduce the error? @JackCaoG |
It's been a week, and I''m still encountering this problem. I have tried different methods for example: dist.gather(), tensor.cpu(), tensor.contiguous() or other methods related to saving tensors also moves to CPU and run into the same problem here. Even with xm.mark_step(). There is no other way around this and it has always been the same error
|
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should move tensors to cpu.
Environment
Additional context
The text was updated successfully, but these errors were encountered: