>>> import tensor flow as tf >>> hello = tf.constant("Hello, TensorFlow.") >>> sess = tf.Session() >>> print(less.run(hello)) Hello, TensorFlow.
sample_tensorflow.py
これでTensorflowが使えるようになりました。
(補足)
3行目を入力した際に
(補足)
3行目を入力した際に
>>> sess = tf.Session()
can't determine number of CPU cores: assuming 4
error.py
と出る場合があります。これはOSXバイナリを使っている場合に発生してしまうエラーなようで、
<span class="go">NUM_CORES = <コア数>;</span>
編集内容
と入力すると解決するそうです。
いかがでしたか?
現在のでは、tensorflowの他に、chainerやKerasと呼ばれるパッケージもあります!
興味のある方は是非調べてみてください。
Chainer: A flexible framework for neural networks

Chainerの公式ページ
Keras Documentation

Keras の公式ページ