Fix missing attribute when loading model from older version (#42242) (#42290)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/42242
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42290
Reviewed By: VitalyFedyunin
Differential Revision: D22844096
Pulled By: albanD
fbshipit-source-id: 707e552e0ed581fbe00f1527ab7426880edaed64