Closed DavidePaglieri closed 2 years ago
You are hitting this bug in CuPy which you should be able to resolve be using an older CuPy version: https://github.com/cupy/cupy/issues/6231
Thank you for answering this so fast, however could you say more precisely which versions you are using for Pytorch, cuda and cupy? I have tried different things and still get errors.
The specific versions don't matter that much as long as your PyTorch version isn't too old and you are not using version 10.0 of CuPy. What matters more is that your PyTorch and CuPy use the same CUDA version, so make sure this is the case.
Okay thank you very much for the help! I managed to make it work. For reference if anyone has the same error in the future, these worked for me:
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=9.2 -c pytorch
pip install cupy-cuda92
Hello! When running your code I get the following error:
Any ideas on how to solve this? I have installed the requirements correctly.