Solved by ptrblck in post #2 
              
              
                You can directly index your image tensor: 
img = torch.randn(1, 3, 10, 10, device='cuda')
x, y = 1, 1
width, height = 5, 5
img[:, :, y:y+height, x:x+width]