警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

TensorFlow运行会出这个问题,macos Linux好像可以通过https://github.com/lakshayg/tensorflow-build 这个链接解决。windows下没找到什么办法但是可以通过下面的代码消除。

import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'

猜你喜欢

转载自blog.csdn.net/xiexu911/article/details/80430705