Hi,
No the gradients are properly computed.
You can check this by running:

from torch.autograd import gradcheck
gradcheck(lambda x: new(x).sum(), image.clone().detach().double().requires_grad_())

It checks that the autograd gradients match the ones computed with finite difference.