Enable torch.tensor typechecks (#45077)
Summary:
this fixes https://github.com/pytorch/pytorch/issues/42983.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45077
Reviewed By: ezyang
Differential Revision: D23842493
Pulled By: walterddr
fbshipit-source-id: 1c516a5ff351743a187d00cba7ed0be11678edf1