You can directly access the output values of F.sigmoid(conv2) via indexing to get the corner pixels:
top_left = prob_corner[:, :, 0, 0]
top_right = prob_corner[:, :, 0, -1]
...

Let me know, if I misunderstood the question.