 Size error in convolution layer and pooling layer! The last row and last column of the convolution layer2 are not pooled and are simply discarded.