Add to_empty() suggestion in the error message (#119353)
Fixes #119293, the comprehensive documentation is [here](https://github.com/pytorch/pytorch/blob/0f478d9d610bec80b8a7517103d9390cc26d1d05/docs/source/meta.rst#id11).
Just added the suggestion into the error message so it is more informative to user.
@albanD
Co-authored-by: mikaylagawarecki <mikaylagawarecki@gmail.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119353
Approved by: https://github.com/mikaylagawarecki