[GH1] Relanding #80064 to erase double messaging as it was overwritten by mistake (#80550)
https://github.com/pytorch/pytorch/pull/77943 accidentally overwrote #80064. We can revert that PR and reland it later or we can land this fix PR as it is one line.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80550
Approved by: https://github.com/suo