''' Created on Oct 29, 2017 @author: bob ''' import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' #to avoid warnings about compilation import tensorflow as tf log_dir="/Users/bob/Documents/TensorFlow/TensorBoard/Begin2/" three= tf.constant(3,name="three") five= tf.constant(5,name="five") a= tf.add(three,five) #a=3+5 #try this to show wont work b= a+7 with tf.Session() as sess: writer = tf.summary.FileWriter(log_dir,sess.graph ) aa,bb =sess.run([a,b]) print(aa,bb)