RuntimeError: CUDA out of memory. Tried to allocate 14763.13 GiB (GPU 3; 10.73 GiB total capacity; 165.28 MiB already allocated; 9.61 GiB free; 10.72 MiB cached)

原因:要将大量数据加载到GPU上时出现的错误,数据量太大了
解决办法:做数据的切分,一个batch一个batch的分批计算。在pytorch中有个Dataset类,可以自己定义一个加载数据的类,继承Dataset,同时实现Dataset的两个方法:getitem() 和 len() ,然后使用 Dataloader 对自定义的类进行包装后,在训练阶段就可以让pytorch自动为你批量加载数据了,具体的实现细节参考我的另一篇文章 Pytorch数据读取(Dataset, DataLoader, DataLoaderIter)

CUDA out of memory. Tried to allocate 14763.13 GiB (GPU 3; 10.73 GiB total capacity; 165.28 MiB alre相关推荐

  1. CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 10.76 GiB total capacity; 652.77 MiB alread

    在使用Pytorch中,出现CUDA out of memory. Tried to allocate 392.00 MiB (GPU 0; 10.76 GiB total capacity; 652 ...

  2. RuntimeError: CUDA out of memory. Tried to allocate 132.00 MiB (GPU 2; 3.95 GiB total capacity; 3.41

    pytorch报错:RuntimeError: CUDA out of memory. Tried to allocate 132.00 MiB (GPU 2; 3.95 GiB total capa ...

  3. 解决CUDA out of memory. Tried to allocate 2.10 GiB (GPU 0; 14.76 GiB total capac

    解决CUDA out of memory. Tried to allocate 2.10 GiB (GPU 0; 14.76 GiB total capac...... 问题 解决方案 参考了一篇博文 ...

  4. RuntimeError: CUDA out of memory. Tried to allocate 1.54 GiB...

    报错 F:\Anaconda3\python.exe "E:/Program Files/PyCharm 2019.2/***/xxx.py" F:\Anaconda3\lib\s ...

  5. 报错`RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capaci

    报错RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capacity; 8. ...

  6. CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 6.00 GiB total capacity;总结(1)

    CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 6.00 GiB total capacity; 4.54 GiB already al ...

  7. RuntimeError: CUDA out of memory. Tried to allocate 170.00 MiB (GPU 0; 3.82 GiB total capacity; 1.94

    错误: RuntimeError: CUDA out of memory. Tried to allocate 170.00 MiB (GPU 0; 3.82 GiB total capacity; ...

  8. 【PyTorch问题】CUDA out of memory. Tried to allocate 4.69 GiB (GPU 0; 8.00 GiB total capacity...略

    问题描述:RuntimeError: CUDA out of memory. Tried to allocate 4.69 GiB (GPU 0; 8.00 GiB total capacity; 5 ...

  9. RuntimeError: CUDA out of memory.Tried to allocate 20.00 MiB GPU 0 ,3.94 GiB total capacity 3.36 G

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

最新文章

  1. 接口里面的静态方法--痒啊
  2. Leetcode1689. 十-二进制数的最少数目[C++题解]:贪心、找规律简单题
  3. Java枚举:小小enum,优雅而干净
  4. 【cropper】限制图片大小
  5. 三维CNN:收集一些最近的3d卷积网络PointNet++
  6. [react] 受控组件和非受控组件有什么区别?
  7. spring的bean不能注入的几种原因及分析
  8. python 字典类型问题_[ python ] 字典类型的一些注意问题
  9. [Ext JS]5.9 嵌套Grid的实现及注意事项
  10. 电力设备管理杂志电力设备管理杂志社电力设备管理编辑部2022年第14期目录
  11. 2022-2028全球与中国商用车辆HMI解决方案市场现状及未来发展趋势
  12. 科思创进博会宣布筹建上海新工厂;碧迪医疗进博会签订总值达2.7亿元合作协议 | 美通社头条...
  13. LaTeX 数学公式和符号
  14. 2023年高新技术企业认定申报注意事项
  15. FAR PASCAL 的解释
  16. 美元指数K线图怎么看?
  17. SW3516中文资料书
  18. 【2021 CSDN年度报告】看看你今年有收获没?
  19. vue 插件 滑块验证_vue之滑块验证码
  20. Cadence IC61 使用spectre仿真后仿网表流程

热门文章

  1. 陪我长大的村,镇,学校和家乡
  2. 涨疯了,历史总是如此相似
  3. LeetCode 1980. 找出不同的二进制字符串
  4. LeetCode MySQL 1587. 银行账户概要 II
  5. LeetCode 878. 第 N 个神奇数字(二分查找)
  6. 天池 在线编程 寻找字母(计数)
  7. 天池 在线编程 数组划分III(计数)
  8. LeetCode 1298. 你能从盒子里获得的最大糖果数(BFS)
  9. LeetCode MySQL 197. 上升的温度
  10. LeetCode 531. 孤独像素 I