-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Maybe a bug about multi_scale_deform_attn
#2159
Comments
Calling |
OK, but where was the I'm not sure where to fix it |
Oh, and there's already a PR (#2158) to fix this bug. |
Merged
7 tasks
OK, thank you for your reply.😊 |
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I got an error when executing this line of code.
mmcv/mmcv/ops/multi_scale_deform_attn.py
Line 324 in 4558bfb
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
I personally feel that there is a problem with initializing weights. You can see here, the
bias
of sampling_offsets may be put oncpu
?mmcv/mmcv/ops/multi_scale_deform_attn.py
Line 249 in 4558bfb
The
device
of grid_init iscpu
on my machine.The text was updated successfully, but these errors were encountered: