Last active
January 11, 2017 09:39
-
-
Save savan77/66e9e97bd5d70a196a69002ed6ca39a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| #create a variable | |
| #Synatx - tf.Variable(<initial-value>, name="") | |
| x = tf.Variable(3, name="x") | |
| y = tf.Variable(4, name="y") | |
| #add x,y | |
| c = tf.add(x,y) | |
| init = tf.global_variables_initializer() | |
| sess = tf.Session() | |
| sess.run(init) | |
| result = sess.run(c) | |
| print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment