Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2”
2018-04-11 16:56
591 查看
用tensorflow框架执行Python语句时,出现“ Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2”
出现这个提示,但是不影响执行结果,但是就是看着不爽,所以就去网上搜了搜,大致的原因就是说:tensorflow觉得你电脑cpu还行,支持AVX(Advanced Vector Extensions),运算速度还可以提升,所以可以开启更好更快的模式,但是你现在用的模式相对来说可能不是那么快,所以这个其实并不是存在错误,所以如果不嫌当前的模式慢就忽略掉这个警告就好了。要是想忽略掉这个警告也很容易,搜了一下,stack overflow上给的建议是
出现这个提示,但是不影响执行结果,但是就是看着不爽,所以就去网上搜了搜,大致的原因就是说:tensorflow觉得你电脑cpu还行,支持AVX(Advanced Vector Extensions),运算速度还可以提升,所以可以开启更好更快的模式,但是你现在用的模式相对来说可能不是那么快,所以这个其实并不是存在错误,所以如果不嫌当前的模式慢就忽略掉这个警告就好了。要是想忽略掉这个警告也很容易,搜了一下,stack overflow上给的建议是
Just disables the warning, doesn’t enable AVX/FMA
解决办法为:1 import os 2 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
相关文章推荐
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- 解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- 警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
- Your CPU supports instructions that this TensorFlow binary was not compiled to use:SSE4.1 SSE4.2 AVX
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AV
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AV
- How to fix the problem 'Your CPU supports instructions that this TensorFlow binary was not compiled'
- pycharm运行TensorFlow警告:Your CPU supports instructions that this TensorFlow binary was not compiled to
- Your CPU supports instructions that this TensorFlow binary was not compiled to
- The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your..
- The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your.....
- The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your m
- The TensorFlow library wasn'tcompiled to use SSE4.1 instructions, but these are available on your ma
- The TensorFlow library wasn't compiled to use SSE4.1 instructions
- tensorflow-gpu bug:The TensorFlow library wasn't compiled to use SSE instructions, but these are