Question about train example code for TensorFlow
If I understood you correctly, you are asking about this line of code:

train_step.run(feed_dict={x: batch[0], y_: batch[1], keep_prob: 0.5})


Here you only specify which part of batch is used for features and which for your predicted class.