はじめに
ThesorFlowが動作する環境を構築した時のメモです。
動作環境
- Windows10 64-bit Pro
- Intel Corei7-6500U 2.50GhZ
- Intel HD Graphics 520
- Anaconda 5.0.1(201712)
インストール方法
- スタートメニュー「Anaconda > Anaconda Navigator」を起動する
- Anaconda仮想環境から「TensorFlow」パッケージをインストールする
-
thensorFlowパッケージインストール
> pip install --ignore-installed --upgrade tensorflow
-
jupyter notebook インストール & 起動する。
jupyter notebool 上でサンプルコードを実行する。
sample.pl
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
”MNIST For ML Beginner” を実行する。
メモ
tensorflowバージョン確認
> python -c 'import tensorflow as tf; print(tf.__version__)'