Unconditionally transform dtype arguments to double for upcast
This ensures we can also hit functions like torch.sum that take
a dtype argument, without having to manually list them all.
Signed-off-by: Edward Z. Yang <ezyangfb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78459
Approved by: https://github.com/albanD