Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Last active February 3, 2018 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/d6a236bd71d7db117f7cb8ca08a53fb6 to your computer and use it in GitHub Desktop.
Save NMZivkovic/d6a236bd71d7db117f7cb8ca08a53fb6 to your computer and use it in GitHub Desktop.
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