解决报错Could not satisfy explicit device specification '' because the node was colocated with a

Posted wangliman

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决报错Could not satisfy explicit device specification '' because the node was colocated with a相关的知识,希望对你有一定的参考价值。


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的主要内容,如果未能解决你的问题,请参考以下文章

解决报错Could not satisfy explicit device specification '' because the node was colocated with a

pip install yaml报错ERROR:Could not find a version that satisfies the requirement yaml

错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )

关于pip3 install virtualenvwrapper 报错:ERROR: Could not find a version that satisfies the requirement p

[报错处理]Could not find a version that satisfies the requirement xml (from versions)

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: non