Skip to content

Instantly share code, notes, and snippets.

@archanpatkar
Created November 25, 2017 09:58
Show Gist options
  • Save archanpatkar/830d7b309f8c22ac52ef21ab7e3dadad to your computer and use it in GitHub Desktop.
Save archanpatkar/830d7b309f8c22ac52ef21ab7e3dadad to your computer and use it in GitHub Desktop.
import tensorflow as tf
node1 = tf.constant(1);
print(node1);
node2 = tf.constant(3);
print(node2);
node3 = node1 + node2;
print(node3);
with tf.Session() as session:
output = session.run(node3);
print(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment