Could you explain the general use case a bit more?
What would the final prediction be? Would you apply some kind of voting using the predictions for all patches of the current image or would each patch get a prediction and you wouldn’t care about the original image?
Based on the use case, there might be different approaches.
E.g. you could use torchvision.transforms.FiveCrop to create 5 patches at predefined positions as a preprocessing step or you could use unfold to create the patches manually.