The post is very informative and has lots of detail about Dropout. Just wanted to know where can we use Dropout?
The code needs correction. You have to use the output of dropout layer while performing "matmul" in the subsequent stage.
example: y_logits = tf.add(tf.matmul(y2, W3), b3) should be y_logits = tf.add(tf.matmul(y2_dropout, W3), b3)