首页 > 其他 > 详细

解决报错Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/device:GPU:0'

时间:2018-10-26 21:56:33      阅读:380      评论:0      收藏:0      [点我收藏+]

sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))

改为如下:
sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True))

备注:allow_soft_placement=True表示当没有GPU实现可用时,使用将允许TensorFlow回退到CPU。

解决报错Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/device:GPU:0'

原文:https://www.cnblogs.com/wangliman/p/9858402.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!