In [1]:
import tensorflow as tf

In [3]:
a = tf.constant(10,name='a')
b = tf.constant(90,name="b")

y = tf.Variable(a+b*2, name="y")
model = tf.initialize_all_variables()

with tf.Session() as sess:
    merged = tf.merge_all_summaries()
    writer = tf.train.SummaryWriter("/tmp/tensorflowlogs", sess.graph)
    sess.run(model)
    print(sess.run(y))


190

In [ ]: