mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
There are 31 places that I spotted which construct literal dictionaries.
This PR refactors dictionary construction by replacing` dict(...) `calls with `literal {...}` syntax where applicable.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157735
Approved by: https://github.com/ezyang, https://github.com/Skylion007
|
||
|---|---|---|
| .. | ||
| maskedtensor | ||
| __init__.py | ||
| _docs.py | ||
| _ops.py | ||