TensorFlow.环境_avx2

1、缘由:

  按照之前的步骤,在Win10的笔记本上就是不行:

 1.1、jupyter notebook的相关界面,如下图所示:

  

  ZC:感觉 应该还是 tensorflow的问题

 1.2、然后 各种测试:

  

  ZC:这里 发现 随机数 出来的Sum结果是 0,感觉不太对("Python3 -c ....."这条命令 一点反应也没有,也感觉怪怪的...)。但是 看版本 又觉得还行,应该是正常的...

  于是 又换一种方式:

$ python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(22)
>>> print(sess.run(a + b))
32
>>>

  我是 一句一句将代码复制到Python控制台 然后回车的,在执行到 “sess = tf.Session()”时 报错了:

  于是 度娘“Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2”

   于是找到了:(有很多的 搜索结果的,只是挑了这个先尝试的)

    Your CPU supports instructions that this TensorFlow binary was not compiled to use_ AVX2 FMA - 山中有石为玉 - CSDN博客.html(https://blog.csdn.net/weixin_41770169/article/details/86003010

    解决Tensorflow 使用时cpu编译不支持警告 - Fourierrr_的博客 - CSDN博客.html(https://blog.csdn.net/Fourierrr_/article/details/79749899

    ZC:在github中 看到一个 这个路径:“https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.14.0/cpp” 这里面是专门为 WIndows下的C++准备的?怎么用?以后搜搜...

2、

3、

4、

5、

猜你喜欢

转载自www.cnblogs.com/cppskill/p/11228863.html