Tensorflow运行时重建警告



我已经通过pip安装了tensorflow,它显示其下载和安装正确,但当我运行代码时,它显示要用正确的编译器标志重新构建它。

This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) 
to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

tf.Tensor(-1883.2466, shape=(), dtype=float32)

上面的输出是我在运行这段代码时得到的错误:

import tensorflow as tf
print(tf.reduce_sum(tf.random.normal([1000, 1000]))) 

这是一个bug还是什么,请帮助我,因为我正在尝试学习深度学习

警告不是抱怨AVX未启用。这只是一个信息性的消息,说只有在某些操作中,英特尔的oneDNN将被使用,AVX或AVX2将被打开。

请按照https://software.intel.com/content/www/us/en/develop/articles/intel-optimization-for-tensorflow-installation-guide.html的要求添加标签"comp:mkl"

最新更新