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/5e5633814064a3665fd6a0187f7d39da to your computer and use it in GitHub Desktop.
Save NMZivkovic/5e5633814064a3665fd6a0187f7d39da to your computer and use it in GitHub Desktop.
import tensorflow as tf
var1 = tf.Variable([[1, 2], [1, 2]], name="variable1")
var2 = tf.Variable([[3, 4], [3, 4]], name="variable2")
result = tf.matmul(var1, var2)
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