Last active
March 16, 2018 14:13
-
-
Save ispamm/b288bf7e65289722faa53e4d860385fd to your computer and use it in GitHub Desktop.
Eager_tutorial_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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