Aug 22, 2017 · 1 min read
I think my explanation is not the best. The idea is to resize it in a way that either cols or rows is 20 and the other one should be less. Like 18x20 or 20x17 for example. We use the padding to 28x28 in the end to have always 28x28 arrays for our network.
