1. 已经安装cuda但是tensorflow仍然使用cpu加速的问题 电脑上同时安装了GPU和CPU版本的TensorFlow,本来想用下面代码测试一下GPU程序,但无奈老是没有调用GPU. import tensorflow as tf with tf.device('/cpu:0'): a = tf.constant ([1.0, 2.0, 3.0], shape=[3], name='a') b = tf.constant ([1.0, 2.0, 3.0], shape=[3], nam
21:39 2016/7/212016 windows安装phing:安装成功注意:出现错误时就去更新pear:参见:http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html国外解释:To fix it I had to upgrade PEAR itself:....... And then phing installed perfect:参见国外解释:http://gruz.org.ua/en/tech-blog/linu
Google TensorFlow for GPU安装.配置大坑 从本周一开始(12.05),共4天半的时间,终于折腾好Google TensorFlow for GPU版本,其间跳坑无数,摔得遍体鳞伤,曾一度怀疑自己廉颇老矣,不能饭也:后,凭借自己多年积累得还算扎实的基本功,终于从无数个坑中爬出,百转千回,成功安装了TensorFLow,如下图: 题外话,图中a+b的输出结果为42是有意为之,因为<银河系漫游指南>中关于生命.宇宙及一切问题的终极答案就是42 先小小庆祝一下,然后再把其中几个