mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
For the purposes of this function, `PyTensorType` is essentially being used as a `pair<Backend, ScalarType>` so it makes more sense to just take these arguments directly. This simplifies the code and makes it so that `py_set_default_dtype` doesn't need to search for a valid `PyTensorType` object just to set the `ScalarType`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/73369