SHARE
TWEET

Untitled

nowroz Jul 17th, 2019 (edited) 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top