Advertisement
sreejith2904

Untitled

Jul 14th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. ## get 100 random rows
  2.  
  3. random100 = tests.random_batch(100)
  4. x_batch = pre_process_images(images_train[random100, :, :, :], istrain=True)
  5.  
  6. img_size = 28
  7. num_channels = 3
  8. x = tf.placeholder(tf.float32, shape=[100,
  9.                                       img_size,
  10.                                       img_size,
  11.                                       num_channels], name='x')
  12.  
  13. ## making it float32 -  i was getting an error here - this casting did the fix
  14. loss = tf.cast(x_batch, tf.float32)
  15.  
  16. #x_batch = x
  17. test = main_network(loss)
  18. session.run(x_batch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement