-
Notifications
You must be signed in to change notification settings - Fork 40
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
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) #41
Comments
Hello, Modify the last line of error code and move all related variables to run on the GPU (using the statement tensor=tensor. to ('cpu '), if unsure, you can move all variables in the last error code to run on the GPU using this statement.) Hope to help you. |
Hello, Thank you for your help. Here is the complete error message I encountered: |
Hello, I think just modify the last line of your error message. Hoping This Helps |
The query_points = query_map[valid_idx.cpu(), :].cuda().contiguous() Good Luck |
Thank you for your excellent work, but I have a new question: |
Hi,
I encountered an issue when running the following command:
python train.py -s $gs_data_path/m4c_processed -m output/m4c_processed --train_stage 1
The error message is:
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Could someone please help me understand what might be causing this error? My level of expertise is somewhat limited, and I’m not quite sure how to resolve this issue. Any guidance would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: