python - 运行时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。
推荐阅读
- python - 验证用户输入并执行正确的输入
- laravel - Laravel 密码基本哈希
- repository - 在centos7.9 raspberrypi上安装centreon
- node.js - MODULE_NOT_FOUND 尝试在 Node JS / TypeScript 项目中的模块之间按目录共享代码
- elasticsearch - 如何在不删除以前数据的情况下重新索引到现有索引
- node.js - Discord.js - 消息编辑/删除记录器错误
- c++ - 如何将 TXT 文本中的编译文件输出到屏幕?
- glsl - GLSL 双精度复数幂函数
- c++ - 如何创建一个依赖于外部非仅标头目标的 cmake 仅标头库?
- c# - 可以先触发基类属性吗?