tensorflow学习:错误 InternalError: Dst tensor is not initialized
来源:互联网 发布:淘宝直通车分时折扣 编辑:程序博客网 时间:2024/06/05 13:46
今天在jupyter notebook上跑一个tensorflow 的CNN程序时,出现了一个错误,记录如下:
错误:InternalError: Dst tensor is not initialized.
分析:出现这个错误一般是GPU内存耗尽,挂在后台进程中的IPython内核会这样做
解决办法:运行程序之前,先运行export CUDA_VISIBLE_DEVICES=1,仅显卡设备1GPU可见,tensorflow 算是一个比较贪心的工具了就算用device_id指定gpu 也会占用别的GPU的显存资源 必须在执行程序前执行
export CUDA_VISIBLE_DEVICES=n(n为可见的服务器编号)再去执行Python 代码.py 才不会占用别的GPU资源
export CUDA_VISIBLE_DEVICES=n(n为可见的服务器编号)再去执行Python 代码.py 才不会占用别的GPU资源
阅读全文
0 0
- tensorflow学习:错误 InternalError: Dst tensor is not initialized
- 错误Tensor is not an element of this graph tensorflow
- 错误Tensor is not an element of this graph tensorflow
- [tensorflow学习笔记]tensor.eval
- Unity错误(3)—— java.lang.IllegalArgumentException: ResClass is not initialized
- Cocos2d在VC2013上初次运行错误:GLFWError #65537 Happen,The GLFW library is not initialized
- OpenCMS部署时容易出如下错误(OpenCms is not properly initialized!)
- Hive metastore database is not initialized
- 学习TensorFlow,打印输出tensor的值
- tensorflow学习笔记(二):tensor 变换
- TensorFlow学习(基于书本Tensor Flow实战)
- Tensorflow 学习笔记- tensor的声明
- 【TensorFlow】框架学习笔记tensor(一)
- activeMQ启动错误 BeanFactory not initialized
- Tensorflow 提示list indices must be integers, not Tensor ?
- TensorFlow 学习(一)“name 'input_data' is not defined”
- play! framework 问题 The JPA context is not initialized
- 解决Hive installation issues: Hive metastore database is not initialized
- iOS ipv4和ipv6转换
- tensorflow 环境搭建
- 热分析原理搞一搞
- [LeetCode]173. Binary Search Tree Iterator
- python实例(暂停一秒输出)
- tensorflow学习:错误 InternalError: Dst tensor is not initialized
- video.dev 源码解析
- 一份非常棒的vim配置
- docker logs 查看实时日志
- python 中字典{ }的嵌套
- Android初级开发(四)——补充8、ViewPager的使用
- 7620:区间合并
- hdu
- 浪漫圣地1