I’m not sure to understand the use case correctly.
Are you trying to get the same patch or to apply identical transformations for both patches?
In the latter case, you could use the functional API of torchvision.transforms
.
Have a look at this post for an example.