Skip to content

Instantly share code, notes, and snippets.

@andreaschandra
Last active September 6, 2018 08:16
Show Gist options
  • Save andreaschandra/6715e2d8a7994e64cc7c8095b851f0a1 to your computer and use it in GitHub Desktop.
Save andreaschandra/6715e2d8a7994e64cc7c8095b851f0a1 to your computer and use it in GitHub Desktop.
d = tf.Variable([3,4,5])
init_op = tf.global_variables_initializer()
sess = tf.Session()
sess.run(init_op)
sess.run(d)
#array([4, 5, 6], dtype=int32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment