Dont hold onto references of saved tensors in backward (#88247)
This improves memory compression of resnet18 on inductor non-cudagraphs from .78 -> .0.84.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88247
Approved by: https://github.com/ezyang