How to pad a numpy 3D array (or torch tensor) with values from surrounding 3D arrays
I have a 3D numpy array of shape 3,3,3 to which I want to pad 2 layers of values from arrays surrounding it spatially, so that it becomes a 5,5,5 array. What I have done so far using torch cat …