RuntimeError: No such operator torchvision::nms

i use pytorch1.4+torchvision0.5(CPU in Windows)。when i use run detection model,it show that.Can someone tell me how to solve it? Thank you very much

Please refer to this post. https://github.com/pytorch/vision/issues/1916

I had this issue with Python 3.6.9 so it doesn’t seem to be a Python 3.8 problem. I solved my problem adding this before importing torch and torchvision:

import os
import sys
py_dll_path = os.path.join(sys.exec_prefix, 'Library', 'bin')
os.environ['PATH'] += py_dll_path