Seems like you are successfully declaring what the shape and type of 'y' is but not actually specifying any value for y. For placeholders, you also need to use feed_dict to set the value(s) for y during tf.Session run.
A useful starting point is the official Tensorflow guides