Making sure all tensors in `torch.cat` sequence have the same dtype. (#35150)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35150
Fixes #35014
Test Plan: Imported from OSS
Differential Revision: D20578589
Pulled By: z-a-f
fbshipit-source-id: edeaef133d1cf5152dcbafab2b969f1424ee2836