我在Ubuntu 14.04上安装了GPU版本的tensorflow.
我在GPU服务器上,tensorflow可以访问可用的GPU.
我想在CPU上运行tensorflow.
通常情况下,我可以使用env CUDA_VISIBLE_DEVICES=0GPU上运行.0.
env CUDA_VISIBLE_DEVICES=0
如何在CPU之间进行选择?
我没有兴趣重写我的代码 with tf.device("/cpu:0"):
with tf.device("/cpu:0"):
python tensorflow
python ×1
tensorflow ×1