Failed to register operator torchvision::_new_empty_tensor_op.报错
Failed to register operator torchvision::_new_empty_tensor_op.
报错
Failed to register operator torchvision::_new_empty_tensor_op.问题
是因为torch与torchvision版本不匹配导致的,并不是torch版本过低。
笔者安装1.4.0的torch 与0.6.0的torchvision报了这个错误,将torchvision改为0.5.0的版本,则此错误被解决。