Abh*_*ara 14 python tensorflow
我刚刚使用pip安装了Tensorflow 1.0.0.运行时,我收到如下所示的警告.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
我为SSE4.1,SSE4.2,AVX,AVX2,FMA提出了5个类似的警告.
尽管有这些警告,该计划似乎运行正常.
export TF_CPP_MIN_LOG_LEVEL=2在Ubuntu上为我解决了这个问题.
https://github.com/tensorflow/tensorflow/issues/7778
小智 5
我建议的方法来解决问题:
#!/usr/bin/env python3
import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
Run Code Online (Sandbox Code Playgroud)
应该至少在任何Debian或Ubuntu系统上工作.
我对C不太了解,但我发现了这个
bazel build --linkopt='-lrt' -c opt --copt=-mavx --copt=-msse4.2 --copt=-msse4.1 --copt=-msse3-k //tensorflow/tools/pip_package:build_pip_package
Run Code Online (Sandbox Code Playgroud)
你如何构建你的程序?
| 归档时间: |
|
| 查看次数: |
10004 次 |
| 最近记录: |