(#23105)
Summary:
Fixed a [bug](https://github.com/pytorch/pytorch/issues/22992) where passing result tensor into masked_select wont work with bool mask.
Tested via unit tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23105
Differential Revision: D16386676
Pulled By: izdeby
fbshipit-source-id: 93a1e9bfbc916c8a8eaa149a70a5553f3711f53e