Updated invalid type error message to explicitly say only float types… (#83170)
… allowed
Fixes #82983
I added an error messages consistent with existing invalid type error messages (line 330 in torch/csrc/tensor/python_tensor.cpp).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83170
Approved by: https://github.com/ezyang, https://github.com/kit1980