This error occurs when running yolov3 “RuntimeError: Couldn't load custom C++ ops”

"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 GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision 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.



Could you try our l4t-pytorch container to see if works?

$  sudo docker run -it --rm --runtime nvidia --network host
root@nvidia-desktop:/# python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch; print(torch.__version__)
>>> import torchvision; print(torchvision.__version__)


I will try it,thank you first