Fix broken MacOS build due to #97690 (#98665)
https://github.com/pytorch/pytorch/pull/97690 breaks MacOS build https://hud.pytorch.org/pytorch/pytorch/commit/c68a94c5ead758cb0b3fa8a71d731fe131228b12. The fix looks easy enough so I try to go ahead with a forward fix.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98665
Approved by: https://github.com/dagitses