Fix refcounting in access of saved for forward attribute (#72627)
Summary:
fix https://github.com/pytorch/pytorch/issues/72612
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72627
Reviewed By: soulitzer
Differential Revision: D34119834
Pulled By: albanD
fbshipit-source-id: 893a1e88a738eb40072af2106527340aea1d0006
(cherry picked from commit 511a1f16c5e37f4946907bc89b246eb684b89428)