[fix] cat : support different dtype tensor with 0-dim like before (#83391)
Fixes: https://github.com/pytorch/pytorch/issues/82457
TODO:
* [x] Add test (new test also passes on PyTorch version 1.11)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83391
Approved by: https://github.com/ezyang