Fix build error with MSVC (#20853)
Summary:
Close #20642
Possibly broken by #19816
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20853
Differential Revision: D15474620
Pulled By: jerryzh168
fbshipit-source-id: 99b52d92a93bac7cab52537f1ebdbd286d4b2cfe