torchvision使用时Couldn‘t load custom C++ ops.解决方案

使用pytorch 1.9 + torchvision 0.10.0 时有这情况,1.9还有bug。
降级到torch 1.8+torchvision 0.9.0 后解决

"Couldn't load custom C++ ops. This can happen if your PyTorch and "
RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.__version__ and your torchvision version with torchvision.__version__ and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.

你可能感兴趣的:(pytorch)