zl程序教程

您现在的位置是:首页 >  其他

当前栏目

出现 CUDA out of memory 的解决方法

2023-04-18 15:44:18 时间

1. 问题所示

运行这段程序的时候出现如下错误:

RuntimeError: CUDA out of memory. Tried to allocate 1.38 GiB (GPU 0; 7.80 
GiB total capacity; 5.94 GiB already allocated<