gpt4 book ai didi

python - 这个tensorflow消息是什么意思?有副作用吗?安装成功了吗?

转载 作者:行者123 更新时间:2023-12-03 15:15:35 28 4
gpt4 key购买 nike

我刚刚在Anaconda python上安装了tensorflow v2.3。我尝试使用下面的python命令测试安装;

$ python -c "import tensorflow as tf; x = [[2.]]; print('tensorflow version', tf.__version__); print('hello, {}'.format(tf.matmul(x, x)))"
我收到以下消息;
2020-12-15 07:59:12.411952: I tensorflow/core/platform/cpu_feature_guard.cc:142] 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.
hello, [[4.]]
从该消息看来,安装已成功安装。但是 This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX AVX2到底是什么意思?
我是否正在使用具有某些有限功能的te​​nsorflow版本?有副作用吗?
我正在使用Windows 10。

最佳答案

Tensorflow的一个重要部分是它应该很快。通过合适的安装,它可以与CPU,GPU或TPU一起使用。快速运行的一部分意味着它会根据您的硬件使用不同的代码。一些CPU支持其他CPU不支持的操作,例如向量化加法(一次添加多个变量)。 Tensorflow只是告诉您,已安装的版本可以使用AVX和AVX2操作,并且在某些情况下(例如在正向或反向prop矩阵乘法中)默认情况下已设置为可以使用它,这可以加快处理速度。这不是错误,只是告诉您可以并且将利用您的CPU来获得额外的速度。
注意:AVX代表高级矢量扩展。

关于python - 这个tensorflow消息是什么意思?有副作用吗?安装成功了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65298241/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com