Properly setup __name__ on refs functions.
My hands hurt now. Yes I could have added type annotations if you care do it
yourself.
Signed-off-by: Edward Z. Yang <ezyangfb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79178
Approved by: https://github.com/mruberry