NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

RuntimeError: /tmp/pip-req-build-cay04sa4/src/convolution_gpu.cu:66, assertion (at::cuda::check_device({in_feat, kernel})) failed. in_feat and kernel must be on the same device #468

Open emilyemliyM opened 2 years ago

emilyemliyM commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

image


To Reproduce Steps to reproduce the behavior. If the code is not attached and cannot be reproduced easily, the bug report will be closed without any comments.


Expected behavior A clear and concise description of what you expected to happen.


Desktop (please complete the following information):

wget -q https://raw.githubusercontent.com/NVIDIA/MinkowskiEngine/master/MinkowskiEngine/diagnostics.py ; python diagnostics.py

Additional context Add any other context about the problem here.

TB5z035 commented 2 years ago

try setting the default device by torch.cuda.set_device(device) so that the kernel weights would be placed on the right device

465