【发布时间】:2019-12-25 18:07:01
【问题描述】:
我已经使用 conda 安装了 tensorflow。当我测试它时,我得到了这个性能:
import tensorflow as tf
print(tf.__version__)
a = tf.constant([1, 2])
b = tf.constant([3, 4])
print(a + b)
输出
C:\Users\NHoracio\Miniconda3\envs\tesis\python.exe "D:/Dropbox/Codigos/Python3/TensorFlow test/test.py"
2.0.0
2019-12-25 12:13:37.613118: 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:
AVX AVX2
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2019-12-25 12:13:37.621213: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with
default inter op setting: 8. Tune using inter_op_parallelism_threads for best performance.
tf.Tensor([4 6], shape=(2,), dtype=int32)
我知道它可以继续以这种方式工作,但我不确定我是否理解该信息。 我想知道我是否可以提高 CPU 的性能,或者我必须为该消息做什么?
配置: 视窗 10 64b。 英特尔 i5 8250。 广发MX130 Python 3.7.4 PyCharm 2019.3.1 康达 4.8.0 TensorFlow 2.0.0
【问题讨论】:
标签: python windows tensorflow