Skip to content

Instantly share code, notes, and snippets.

@ispamm
Last active March 16, 2018 14:13
Show Gist options
  • Save ispamm/b288bf7e65289722faa53e4d860385fd to your computer and use it in GitHub Desktop.
Save ispamm/b288bf7e65289722faa53e4d860385fd to your computer and use it in GitHub Desktop.
Eager_tutorial_1
import tensorflow as tf
a = tf.constant(3.0)
b = a + 2.0 # Add
c = 1.5 * b # Multiply
sess = tf.Session()
with sess.as_default():
print(sess.run(c)) # Print the value of c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment