Fix deprecation warning in scalar_type_analysis (#50218)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50218
Reviewed By: janeyx99
Differential Revision: D25827971
Pulled By: malfet
fbshipit-source-id: a4e467721435d7ae0db2195694053621eee8c2ee