Skip to content

Instantly share code, notes, and snippets.

@shu223
Last active February 12, 2018 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu223/61c3defc1dca03c9775b3112163151c4 to your computer and use it in GitHub Desktop.
Save shu223/61c3defc1dca03c9775b3112163151c4 to your computer and use it in GitHub Desktop.
TensorFlow TIPS

バージョン確認

http://scriptlife.hacca.jp/contents/programming/2016/08/14/post-1709/

方法1

# pip list

とするとpipで管理されているリストが出ます。

その中に

tensorflow (0.7.1)

というように、TensorFlowのモジュールとバージョンが書いてあります。

方法2

pythonのコンソールを開いて、

>>> import tensorflow as tf
>>> tf.__version__
'0.7.1'

とするとバージョン番号が返ってきます。

"ImportError: cannot import name pywrap_tensorflow"の解決方法

学習スクリプト実行時に出た。

http://stackoverflow.com/questions/35953210/error-running-basic-tensorflow-example

解決方法:tensorflowのディレクトリから出てコマンドを実行する。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment