Hi,
Unfortunately this is not possible.
You can either create a Variable that contains just this part that has requires_grad=True, then insert it into the full image with copy_ or add_ after zeroing this part of the image.
Another way to do it is to compute the gradients for the whole image and then zero out the gradients outside the part that is of interest for you.
Let me know if you have issues implementing that.