![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
墨飏韶年
leetcode:https://leetcode-cn.com/problemset/all/
展开
-
警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
问题:安装TensorFlow(CPU版本),使用pip install tensorflow安装,安装一切顺利,但是在跑一个简单的程序时,遇到如下情况: 大概意思是:你的CPU支持AVX扩展,但是你安装的TensorFlow版本无法编译使用。原因:除了通常的算术和逻辑,现代CPU提供了许多低级指令,称为扩展,例如, SSE2,SSE4,AVX等来自维基百科: 高级矢量扩...转载 2019-01-27 10:40:53 · 504 阅读 · 0 评论 -
Tensorflow的MNIST
程序代码: tensorMNIST.py #coding = utf-8import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("C:\\Users\\xiaoj\\Desktop\\MNIST_data",o...原创 2019-01-29 17:07:46 · 562 阅读 · 0 评论 -
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
今天在跑跑代码时,遇到了标题的问题,然后网上查了下,在此处:http://www.cnblogs.com/Qt-Chao/p/7474360.html 刚刚好讲解了解决该问题的办法,这里当作一个笔记,记录下来。我使用pycharm Python3.6 TensorFlow 1.3 的开发环境 UnicodeDecodeError: 'utf-8' codec can't deco...原创 2019-01-30 15:58:48 · 5228 阅读 · 0 评论 -
ValueError: Floating point image RGB values must be in the 0..1 range.
值错误:浮点图像RGB值必须在0…1范围内。错误来源:在使用图像处理函数处理一个图片后,通过pyplot输出可视化时,出现上述错误提示。错误原因:如错误提示所说,这是输出图像中像素的实数值超出0-1范围导致的。解决方法:在输出最终图像之前需要将其值截断在0-1之间,具体操作如下:after_img = tf.clip_by_value(before_img, 0.0, 1.0)若...原创 2019-01-30 16:35:07 · 3844 阅读 · 1 评论