Replaced whitelisted with allowed (#41867)
Summary:
Closes https://github.com/pytorch/pytorch/issues/41746
Closes https://github.com/pytorch/pytorch/issues/41745
Pull Request resolved: https://github.com/pytorch/pytorch/pull/41867
Reviewed By: izdeby
Differential Revision: D22703533
Pulled By: mrshenli
fbshipit-source-id: 915895463a92e18f36db93b8884d9fd432c0997d