Enable `torch.half` for `lt` and `masked_select` (#43704)
Summary:
Enable testing of those options in `TestTorchDeviceTypeCPU.test_logical_cpu` and `TestTorchDeviceTypeCPU.test_masked_select_cpu_float16`
Add `view_as_real` testing for `torch.complex32` type
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43704
Reviewed By: albanD
Differential Revision: D23373070
Pulled By: malfet
fbshipit-source-id: 00f17f23b48513379a414227aea91e2d3c0dd5f9