Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2016 14:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/70381f5e3321d5a876299038a03b520c to your computer and use it in GitHub Desktop.
tf.identity()
>>> import tensorflow as tf
>>> mat_a = tf.constant([[1,2],[3,4]])
>>> mat_b = tf.identity(mat_a)
>>> print(mat_b.eval())
[[1 2]
[3 4]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment