Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- list = [4,3,2,1,0]
- c = tf.constant(list, shape = [3,3])
- sess = tf.Session()
- print(sess.run(c))
- #output:
- [[4 3 2]
- [1 0 0]
- [0 0 0]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement