TensorFlowでHello World

こんにちは。tsmsogn です。

最近、機械学習や TresorFlow の勉強をしています。機械学習全くわかりません。

とりあえず、なんとかの神さまを怒らせないように、TensorFlow を使って Hello World を表示します。

import tensorflow as tf


hello = tf.constant('Hello, World')
sess = tf.Session()

print sess.run(hello)

実行します。

$ python hello_world.py
Hello, World