Skip to content

Instantly share code, notes, and snippets.

@kechan
Created March 26, 2018 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kechan/55bb1654aa209fcc04af52e8c453b548 to your computer and use it in GitHub Desktop.
Save kechan/55bb1654aa209fcc04af52e8c453b548 to your computer and use it in GitHub Desktop.
Tensorflow
a = tf.constant(2)
b = tf.constant(3)
x = tf.add(a, b)
writer = tf.summary.FileWriter('./graphs', tf.get_default_graph())
with tf.Session() as sess:
print(sess.run(x))
writer.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment