我在Windows 7 SP1 x64 Ultimate(Python 3.5.2 | Anaconda自定义(64位))上安装了TensorFlow版本1.0.0-rc2,使用:pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0rc2-cp35-cp35m-win_amd64.whl当我尝试从Eclipse 4.5或控制台中的https://web.archive.org/web/20170214034751/https://www.tensorflow.org/get_started/os_setup#test_the_tensorflow_installation运行测试脚本时:import tensorflow as tfprint('TensorFlow version: {0}'.format(tf.__version__))hello = tf.constant('Hello, TensorFlow!')sess = tf.Session()print(sess.run(hello))我收到一些错误消息:TensorFlow version: 1.0.0-rc2'Hello, TensorFlow!'E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflobw\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplitsE c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStatsE c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodesE c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTreeE c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloatE c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs为什么?TensorFlow 0.12.1(安装有pip install tensorflow==0.12.1)没有此类问题:TensorFlow version: 0.12.1b'Hello, TensorFlow!'
3 回答
互换的青春
TA贡献1797条经验 获得超6个赞
似乎此问题已在1.1.0rc0及更高版本中修复。
查找最新版本的tensorflow:
pip search --version tensorflow
升级tensorflow:
pip install --upgrade tensorflow==1.1.0rc1
- 3 回答
- 0 关注
- 545 浏览
添加回答
举报
0/150
提交
取消