我的环境如下:
系统:win11 编译器:pycharm python :3.6 torch:1.2.0 torchvision:0.4.0
1、TensorBoard 版本太旧问题
bug:
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above.
解决:
很简单,我就直接打开win+R,激活我的pytorch环境,然后输入: pip install tensorboard==1.14.0
2、ModuleNotFoundError: No module named ‘past’
bug:
ModuleNotFoundError: No module named ‘past’
解决: 参考这篇链接
3、RuntimeError: cuda runtime error (30) : unknown error at …\aten\src\THC\THCGeneral.cpp:50
bug:
RuntimeError: cuda runtime error (30) : unknown error at …\aten\src\THC\THCGeneral.cpp:50
解决:
我是打开我的设备管理器,更新了一下显卡就不再报错了
参考:链接
4、RuntimeError: CUDA out of memory
bug:
RuntimeError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 2.00 GiB total capacity; 1.25 GiB already allocated; 0 bytes free; 30.69 MiB cached)
解决: 参考链接
|