編集:tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl
ここで別の警告が表示されます。これははるかにマイナーなようですか?Tensorflowのインストール:Python - Tensorflowのバージョンの不一致の警告
2017-11-02 13:31:01.945114: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945138: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945154: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945158: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-02 13:31:01.945166: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
私はPython 3.6.3がインストールされたUbuntu 17.10を使用しています。 私はその後、私は例のコードは、すべてのエラーの後に実行するように思わ警告
AI/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
2017-11-02 12:32:13.054316: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
のカップルを取得し、インストールを検証するには、以下の例のコードを実行している
export TF_BINARY_URL=../Downloads/tensorflow-1.4.0-cp36-cp36m-manylinux1_x86_64.whl
pip3 install --upgrade $TF_BINARY_URL
を使用してvirtualenvの中tensorflowホイールファイルをインストールしました。私はちょうどそれらを無視する必要がありますか? 間違ったホイールファイルをダウンロードしましたか?
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
これは動作しませんでしたが、私は私のpythonバージョンと一致するように34を両方36に変更しました。私は結果を元の投稿に更新しました。 –
これは計算上の目的のためにこの警告が将来問題を生じさせるとは思わない。もし将来私が知っているものがあれば –
ええ、それは今では分かります。ソースからコンパイルした方が速く動くかもしれません。 ありがとう! –