Added bool and half support for resize_as_ and view methods (#18821)
Summary:
Enabled **resize_as_** and **view** methods for bool and half tensors.
tested via unit tests
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18821
Reviewed By: ezyang
Differential Revision: D14762852
Pulled By: izdeby
fbshipit-source-id: 4312079fb4e893fea6f71ff4f163094b2674f1e8