请选择 进入手机版 | 继续访问电脑版

Hello Mat

 找回密码
 立即注册
查看: 4073|回复: 1

深度学习code解决方案

[复制链接]

84

主题

115

帖子

731

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
1467
发表于 2019-5-11 17:32:25 | 显示全部楼层 |阅读模式
深度学习code解决方案
【1】解决Anaconda下“The kernel has died, and the automatic restart has failed.” 的问题
在命令行输入conda update spyder;
conda upgrade notebook
conda upgrade jupyter我的电脑软件解决方法:添加if __name__ == '__main__':







回复

使用道具 举报

84

主题

115

帖子

731

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
1467
 楼主| 发表于 2019-5-12 23:33:04 | 显示全部楼层
【2】RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 8.00 GiB total capacity; 6.04 GiB already allocated; 217.75 MiB free; 31.60 MiB cached)
  1. del inputs,labels,outputs
  2. torch.cuda.empty_cache()
复制代码

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-3-28 21:37 , Processed in 0.209675 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表