Mark nn module tensor static for cudagraphs (#132736)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/132714
X-link: https://github.com/pytorch/pytorch/pull/132736
Approved by: https://github.com/mlazos
ghstack dependencies: #132538
Reviewed By: PaliC
Differential Revision: D60857243
Pulled By: anijain2305
fbshipit-source-id: a2c44a5772546340d1cd564c00f6b9d271620aff