Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- x = tf.constant(6)
- w = tf.constant(5)
- b = tf.constant (2)
- output = x * w + b
- sess = tf.Session()
- File_Writer = tf.summary.FileWriter('./graph',sess.graph)
- print(sess.run(output))
- sess.close()
- # run following command in Terminal to run the Tensorboard
- # tensorboard --logdir graph
- # graph is the path of folder in which graph summary is saved
Add Comment
Please, Sign In to add comment