Fix default dtype for randperm, triu/tril_indices inside TorchScript (#57105)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/56676
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57105
Reviewed By: ezyang
Differential Revision: D28060969
Pulled By: gmagogsfm
fbshipit-source-id: 6b074418306377f5f906aafd121b614964972fc3