RuntimeError: CUDA out of memory. Tried to allocate 2.6.00 GiB (GPU 0; 6.76 GiB total capacity; 267.58 MiB already allocated; 3.31 GiB free; 2.61 GiB reserved in total by PyTorch)
看了网上好多方案都是去修改batch_size, 或者加入代码释放GPU内存,尝试了都无效后
还有可能的问题原因是,cuda cudnn torch 这些版本的问题。
解决方案:修改torch版本,检查cudnn版本是否与cuda适配。
400




被折叠的 条评论
为什么被折叠?



