How do I achieve “SAME” mode in Pooling operator?
MXNet support only “VALID” and “FULL”.
I am implementing MXNet backend for Keras. Keras supports “VALID” and “SAME” modes.
The workaround I am thinking:
- Calculating the padding to get the same output shape after pooling. (How ?)
- Call sym.pad() and followed by sym.pool
Any suggestions would be greatly helpful.
Also, if we choose the above-mentioned padding route, will it have any impact on pooling operation? How do I calculate the padding size to achieve pooling with SAME mode.