Fix ParameterList printing meta tensor
Fixes https://github.com/pytorch/pytorch/issues/78250
There are actually two bugs. First, the crash is caused
by TensorOptions::backend incorrectly reporting noexcept when
it can failed. Second, ParameterList is using torch.tensortype
for no good reason; we can just print the dtype instead.
Signed-off-by: Edward Z. Yang <ezyangfb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78529
Approved by: https://github.com/albanD