QoL improvements for torch.testing.make_tensor (#96125)
Per title. The major ones:
- Enforce keyword only parameters for `_modify_low_high`, which takes 7 parameters.
https://github.com/pytorch/pytorch/blob/28aa2efd1422e689d3a7dc6b447ca1f31bbad1c3/torch/testing/_creation.py#L147
is just impossible to comprehend without multiple trips back and forth.
- Improve the error messages by including the offending values in the message
I'll highlight the smaller ones inline.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96125
Approved by: https://github.com/mruberry