Hi, check the notebook here: DebugTorch/Create_3D_patches_unfold.ipynb at master · ranabanik/DebugTorch · GitHub 15
It is nothing new from what ptrblck suggested, I just tried to organize codes and visualize.