【发布时间】:2020-02-18 17:06:35
【问题描述】:
我正在使用Cuda 和Pytorch:1.4.0。
当我尝试增加batch_size 时,出现以下错误:
CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 2.74 GiB already allocated; 7.80 MiB free; 2.96 GiB reserved in total by PyTorch)
我没有发现任何关于 Pytorch 内存使用的信息。
另外,我不明白为什么我只有 7.80 mib 可用?
我应该只使用性能更好的显卡,还是可以释放一些内存?仅供参考,我有一个 GTX 1050 TI,python 3,7 和 torch==1.4.0,我的操作系统是 Windows 10。
【问题讨论】:
-
请不要将错误信息发布为图片。未来的访问者无法搜索它们