That is the Python level, but the right level to solve this at is likely in ATen / the PyTorch dispatcher.
The functions setting values will be the ones ending in _ or _out. You can also look at native_functions.yaml and the alias informaiton there.
Best regards
Thomas