Skip to content

Instantly share code, notes, and snippets.

@amobiny
Last active September 22, 2019 12:49
Show Gist options
  • Save amobiny/5861a547943deb14d3fd24e26e2393fa to your computer and use it in GitHub Desktop.
Save amobiny/5861a547943deb14d3fd24e26e2393fa to your computer and use it in GitHub Desktop.
import tensorflow as tf
# create graph
a = tf.constant(2)
b = tf.constant(3)
c = tf.add(a, b)
# launch the graph in a session
with tf.Session() as sess:
print(sess.run(c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment