Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic

NMZivkovic/tf_example.py

Last active Feb 3, 2018
Embed
What would you like to do?
import tensorflow as tf
const1 = tf.constant([[1,2,3], [1,2,3]]);
const2 = tf.constant([[3,4,5], [3,4,5]]);
result = tf.add(const1, const2);
with tf.Session() as sess:
output = sess.run(result)
print(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment