当前位置: 代码迷 >> 综合 >> RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 14.82 GiB total capacity; 162.
  详细解决方案

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 14.82 GiB total capacity; 162.

热度:55   发布时间:2023-12-11 21:58:03.0

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 14.82 GiB total capacity; 162.90 MiB already allocated; 21.50 MiB free; 176.00 MiB reserved in total by PyTorch)
14g可用,用了162m结果内存溢出,这是什么情况,这也太离谱了吧

  相关解决方案