Do not assume static by default when exporting (#99554) (#99876)
Fixes https://github.com/pytorch/pytorch/issues/99360
Differential Revision: [D45230857](https://our.internmc.facebook.com/intern/diff/D45230857/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99876
Approved by: https://github.com/albanD, https://github.com/voznesenskym