Can someone explain how exactly the np.pad function works?
For example,
X_pad = np.pad(X,((0,0),(pad,pad),(pad,pad),(0,0)))
what happens here?
Here is a page with a handy description. I found it via an internet search for “numpy pad”.
https://numpy.org/doc/stable/reference/generated/numpy.pad.html