1
2

More than 5 years have passed since last update.

TensorFlow学習環境メモ

Last updated at Posted at 2018-01-16

はじめに

ThesorFlowが動作する環境を構築した時のメモです。

動作環境

インストール方法

  1. スタートメニュー「Anaconda > Anaconda Navigator」を起動する
  2. Anaconda仮想環境から「TensorFlow」パッケージをインストールする ts01.png
  3. thensorFlowパッケージインストール

    > pip install --ignore-installed --upgrade tensorflow
    
  4. jupyter notebook インストール & 起動する。

    ts02.png

  5. jupyter notebool 上でサンプルコードを実行する。

thensorflow installマニュアルより

sample.pl
 import tensorflow as tf
 hello = tf.constant('Hello, TensorFlow!')
 sess = tf.Session()
 print(sess.run(hello))

ts03.png

”MNIST For ML Beginner” を実行する。

thensorflow スタートアップより

メモ

tensorflowバージョン確認

> python -c 'import tensorflow as tf; print(tf.__version__)'
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2