Rewrapping a tensor as seen here:
results = Variable(results, requires_grad = True)

will detach it from the computation graph, so remove this line of code.
Also, Variables are deprecated since PyTorch 0.4.0 so you shouldn’t use them anymore in any case.