(一): ModuleNotFoundError: No module named ‘torch.utils.tensorboard’
原因:torch版本过低
解决:卸载原版本,指定下载版本
pip uninstall torchvision
pip uninstall torch
pip install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
(一): ModuleNotFoundError: No module named ‘torch.utils.tensorboard’
原因:torch版本过低
解决:卸载原版本,指定下载版本
pip uninstall torchvision
pip uninstall torch
pip install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html