Avoid un-necessary unwrapping of Tensor in SavedVariable (#59837)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59837
Fixes #58500
Test Plan: Imported from OSS
Reviewed By: soulitzer
Differential Revision: D29069215
fbshipit-source-id: 603db3c8a64b729e86385ed774825f01c6ce0f20