我有以下代码:
import tensorflow as tf
print("Hello")
Run Code Online (Sandbox Code Playgroud)
输出是:
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Hello # This is printed about 5 seconds after the message
Run Code Online (Sandbox Code Playgroud)
该消息只是告诉您默认情况下会启用某些优化,如果您想要更多优化,可以重新编译 TF 以获得更高性能的优化。
\n默认情况下,它们使用 AVX2 进行编译,AVX2 不是最快的 AVX,但它是最兼容的。
\n如果您不需要启用这些(您可能不需要启用这些),那么您可以忽略该信息性消息,因为您知道您正在利用 oneDNN CPU 优化对运行进行一些优化。
\n 归档时间: |
|
查看次数: |
15843 次 |
最近记录: |