Expose raw saved tensors for custom functions (#60551)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60551
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D29466228
fbshipit-source-id: 7565f6cc3f2488c7e444cf81c7eb37a60c75b0e8