Fixes type promotion for `cat` (#39777)
Summary:
Fixes a bug introduced in https://github.com/pytorch/pytorch/issues/35030
Changes the test to do all the possible type combinations.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39777
Differential Revision: D21975165
Pulled By: albanD
fbshipit-source-id: 6d59cfac4f1abe021f8b489454c1c176e7893ecd