Fix the issue that PyTorch doesn't construct bool tensors from non-bo… (#38392)
Summary:
…ol values correctly(https://github.com/pytorch/pytorch/issues/37398)
Signed-off-by: chengjinfang <chengjf@cn.fujitsu.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38392
Differential Revision: D21737009
Pulled By: mruberry
fbshipit-source-id: c77d8c940af95f5011fe008b48ea0d16c3f501d1