Сhange type of a tensor with bools (#19097)
Summary:
**This is **bc-breaking** change**
Change dtype of a tensor which was created from bool data.
Old behavior: torch.tensor([True, False]) -> uint8 tensor
Now: torch.tensor([True, False]) -> bool tensor
Tested via tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19097
Reviewed By: ezyang
Differential Revision: D15632553
Pulled By: izdeby
fbshipit-source-id: b019150844c561a6845710a3c62b12f06b68bbe3