TensorFlow-warning-Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

忽略警告:

https://blog.csdn.net/CliuGeek/article/details/78836598

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

根源解决,使用支持的指令集编译:

 https://github.com/lakshayg/tensorflow-build

参考:

https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions

https://github.com/tensorflow/tensorflow/issues/8037

https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflow-binary-was-not-compiled-to-u?answertab=votes#tab-top

猜你喜欢

转载自www.cnblogs.com/bingdongwuchi/p/9046211.html