这个张量流消息是什么意思?有什么副作用吗?安装成功了吗?
What does this tensorflow message mean? Any side effect? Was the installation successful?
我刚刚在 anaconda 上安装了 tensorflow v2.3 python。我尝试使用下面的 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
到底是什么意思?
我使用的是功能有限的 tensorflow 版本吗?有什么副作用吗?
我正在使用 Windows10.
留言
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)
to use the following CPU instructions in performance-critical operations: AVX AVX2
意味着在性能很重要的地方(例如深度神经网络中的矩阵乘法),将使用某些优化的编译器指令。看来安装成功了。
oneAPI Deep Neural Network Library (oneDNN) is an open-source cross-platform performance library of basic building blocks for deep learning applications. The library is optimized for Intel Architecture Processors, Intel Processor Graphics and Xe architecture-based Graphics. oneDNN has experimental support for the following architectures:
- Arm* 64-bit Architecture (AArch64)
- NVIDIA* GPU
- OpenPOWER* Power ISA (PPC64)
- IBMz* (s390x)
Tensorflow 的一个重要部分是它应该很快。通过合适的安装,它可以与 CPUs、GPU 或 TPU 一起使用。快速发展的一部分意味着它根据您的硬件使用不同的代码。一些 CPU 支持其他 CPU 不支持的操作,例如矢量化加法(一次添加多个变量)。 Tensorflow 只是告诉你你安装的版本可以使用 AVX 和 AVX2 操作,并且在某些情况下默认设置为这样做(比如在前向或反向传播矩阵乘法中),这可以加快速度。这不是一个错误,它只是告诉您它可以并且将会利用您的 CPU 来获得额外的速度。
注意:AVX 代表高级矢量扩展。
我执行以下命令在 CPU 和 GPU:
上安装 keras 和 tensorflow
conda create --name py36 python==3.6.13
conda install tensorflow
conda install keras
conda install tensorflow-gpu
conda install tensorflow-estimator==2.1.0
当我在 Model.fit() 中使用 "verbose=0" 时,它发生了
然后我删除它并解决了
我刚刚在 anaconda 上安装了 tensorflow v2.3 python。我尝试使用下面的 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
到底是什么意思?
我使用的是功能有限的 tensorflow 版本吗?有什么副作用吗?
我正在使用 Windows10.
留言
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)
to use the following CPU instructions in performance-critical operations: AVX AVX2
意味着在性能很重要的地方(例如深度神经网络中的矩阵乘法),将使用某些优化的编译器指令。看来安装成功了。
oneAPI Deep Neural Network Library (oneDNN) is an open-source cross-platform performance library of basic building blocks for deep learning applications. The library is optimized for Intel Architecture Processors, Intel Processor Graphics and Xe architecture-based Graphics. oneDNN has experimental support for the following architectures:
- Arm* 64-bit Architecture (AArch64)
- NVIDIA* GPU
- OpenPOWER* Power ISA (PPC64)
- IBMz* (s390x)
Tensorflow 的一个重要部分是它应该很快。通过合适的安装,它可以与 CPUs、GPU 或 TPU 一起使用。快速发展的一部分意味着它根据您的硬件使用不同的代码。一些 CPU 支持其他 CPU 不支持的操作,例如矢量化加法(一次添加多个变量)。 Tensorflow 只是告诉你你安装的版本可以使用 AVX 和 AVX2 操作,并且在某些情况下默认设置为这样做(比如在前向或反向传播矩阵乘法中),这可以加快速度。这不是一个错误,它只是告诉您它可以并且将会利用您的 CPU 来获得额外的速度。
注意:AVX 代表高级矢量扩展。
我执行以下命令在 CPU 和 GPU:
上安装 keras 和 tensorflowconda create --name py36 python==3.6.13
conda install tensorflow
conda install keras
conda install tensorflow-gpu
conda install tensorflow-estimator==2.1.0
当我在 Model.fit() 中使用 "verbose=0" 时,它发生了 然后我删除它并解决了