【Ubuntu-Tensorflow】InvalidArgumentError GPU不能使用的问题
来源:互联网 发布:php教程做表格 编辑:程序博客网 时间:2024/06/08 09:43
问题内容如下
InvalidArgumentError (see above for traceback): Cannot assign a device to node 'train/final/fc3/b/Momentum': Could not satisfy explicit device specification '/device:GPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0Colocation Debug Info:Colocation group had the following types and devices: ApplyMomentum: CPU Mul: CPU Sum: CPU Abs: CPU Const: CPU Assign: CPU Identity: CPU VariableV2: CPU [[Node: train/final/fc3/b/Momentum = VariableV2[_class=["loc:@train/final/fc3/b"], container="", dtype=DT_FLOAT, shape=[29], shared_name="", _device="/device:GPU:0"]()]]
问题原因:有些tf.Variable()不允许在GPU运行,需要在CPU运行
解决办法:修改配置里面的allow_soft_placement=True,而allow_soft_placement=True,就是运行在出现不允许在GPU运行的时候,可以切换到CPU运行。
【2017/8/9】20:20
经过一个下午的不断的调试认证,发现,allow_soft_placement=True,就是在GPU跑不动程序的时候,自动切换到CPU运行,这种方式虽然能够确保程序的正常运行,但是却不能保证GPU出现问题能够及时的反馈,故而还是推荐使用allow_soft_placement=True的选项。
阅读全文
0 0
- 【Ubuntu-Tensorflow】InvalidArgumentError GPU不能使用的问题
- tensorflow GPU使用问题
- tensorflow-gpu遇到的问题
- tensorflow使用GPU训练时的显存占用问题
- tensorflow使用GPU训练时的显存占用问题
- tensorflow使用GPU训练时的显存占用问题
- 17、TensorFLow GPU 的使用
- tensorflow指定gpu的使用
- Theano和Tensorflow多GPU使用问题
- Anaconda Tensorflow GPU 版本的安装问题
- TensorFlow时碰到的问题(GPU)
- 【Ubuntu-Tensorflow】程序结束掉GPU显存没有释放的问题
- tensorflow中使用指定的GPU及GPU显存
- tensorflow 自主选择使用的gpu
- TensorFlow gpu加速问题
- TensorFlow使用GPU训练网络时多块显卡的显存使用问题
- tensorflow gpu使用情况
- tensorflow:GPU使用
- android创建app快捷方式
- C# 动态编译执行器,Excuter.exe
- JDK和JRE的区别
- javascript基础知识点
- Xamarin.Forms 用户界面——控件——布局——Grid
- 【Ubuntu-Tensorflow】InvalidArgumentError GPU不能使用的问题
- java中String、StringBuffer、StringBuilder的区别
- MySQL5.7.14执行SQL时出现1055错误
- 解决vue-cli中stylus无法使用的问题
- Ruby 命令行大全
- CodeFroce Round 340 div2 E XOR and Favorite Number【莫队算法】
- Xamarin.Froms 用户界面——控件——布局——ScrollView
- Python 3 爬虫(一) 简单的爬虫
- 机器学习编程之python环境