此TensorFlow二进制文件已与Intel®MKL-DNN进行了优化,以在性能至关重要的情况下使用以下CPU指令 [英] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical

查看:466
本文介绍了此TensorFlow二进制文件已与Intel®MKL-DNN进行了优化,以在性能至关重要的情况下使用以下CPU指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu上安装tensorflow,并且我收到此消息:

I ma trying to install tensorflow on Ubuntu and I am getting this message :

(base) k@k-1005:~/Documents/ClassificationTexte/src$ python tester.py 
Using TensorFlow backend.


RUN: 1
  1.1. Training the classifier...
LABELS: {'negative', 'neutral', 'positive'}
2019-12-10 11:58:13.428875: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2019-12-10 11:58:13.432727: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3190585000 Hz
2019-12-10 11:58:13.433041: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5591c387b750 executing computations on platform Host. Devices:
2019-12-10 11:58:13.433098: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
2019-12-10 11:58:13.433182: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
Model: "model_1"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
input_1 (InputLayer)         (None, 8000)              0         
_________________________________________________________________
dense_1 (Dense)              (None, 3)                 24003     


但是脚本可以工作并显示准确性,但是上面的部分在运行之前显示.你有什么主意吗,我在anaconda上安装了tensorflow:

But the script works and display the accuracy but this part above show before the runs. Do you have any idea , I install tensorflow on anaconda :

推荐答案

引发上述警告是因为TensorFlow库最初是在不同体系结构的计算机上编译的,并且未针对您的特定体系结构进行优化.这意味着它将继续运行,但是您不会从库中获得最大的性能.

The above warning is thrown because TensorFlow library was originally compiled on different architecture machine and is not optimized for your particular architecture. Which means that it will continue to function, but you won't be getting max performance out of the library.

要在计算机上获得最高性能,您需要在计算机上构建TensorFlow.

To get the max performance on your machine, you need to build TensorFlow on your machine.

有关从源代码构建的步骤,请参考官方文档 n.

Refer to the official documentation for the steps for building from source.

官方文档: https://www.tensorflow.org/install/source

这篇关于此TensorFlow二进制文件已与Intel®MKL-DNN进行了优化,以在性能至关重要的情况下使用以下CPU指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆