Skip to content

Instantly share code, notes, and snippets.

View penzou's full-sized avatar

とーかい penzou

View GitHub Profile
import tensorflow as tf
hello = tf.constant('Hello, World!')
sess = tf.Session()
print(sess.run(hello))
$ pip install tensorflow # Python 2.7; GPUを使わない場合
$ pip3 install tensorflow # Python 3.n; GPUを使わない場合
$ pip install tensorflow-gpu # Python 2.7; GPUを使う場合
$ pip3 install tensorflow-gpu # Python 3.n; GPUを使う場合
$ sudo apt-get install python-pip python-dev
$ python -V