Is there a way to implement your own padding algorithm? For example use reflect padding instead of the seemingly solely available one: zero padding.
Numpy offers it for example: https://docs.scipy.org/doc/numpy/reference/generated/numpy.pad.html 57