Advertisement
nowroz

Untitled

Jul 17th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import tensorflow as tf
  2.  
  3. list = [4,3,2,1,0]
  4.  
  5. c = tf.constant(list, shape = [3,3])
  6.  
  7. sess = tf.Session()
  8.  
  9. print(sess.run(c))
  10.  
  11. #output:
  12. [[4 3 2]
  13.  [1 0 0]
  14.  [0 0 0]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement