Make empty* and *_like factory functions respect tensor subclasses (#65677)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/65243
cc albanD
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65677
Reviewed By: dagitses
Differential Revision: D31432032
Pulled By: albanD
fbshipit-source-id: 77f464974c7656c1206085aba9300471d7e0ef57