conv1 kernel size in the code is 3x3,but feature map size after conv1 is 28x28 in the above image,it should be 30x30,or change the kernel size to 5x5.