Guest User

Untitled

a guest
Jun 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import tensorflow as tf
  2.  
  3. x = tf.constant(6)
  4. w = tf.constant(5)
  5. b = tf.constant (2)
  6.  
  7. output = x * w + b
  8.  
  9. sess = tf.Session()
  10.  
  11. File_Writer = tf.summary.FileWriter('./graph',sess.graph)
  12.  
  13. print(sess.run(output))
  14. sess.close()
  15.  
  16. # run following command in Terminal to run the Tensorboard
  17. # tensorboard --logdir graph
  18. # graph is the path of folder in which graph summary is saved
Add Comment
Please, Sign In to add comment