Commit Graph

2 Commits

Author SHA1 Message Date
Kazuaki Ishizaki
a531a464fd Fix typos under torch/nn directory (#97594)
This PR fixes typos in comments of `.py` files under `torch/nn` directory

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97594
Approved by: https://github.com/dagitses, https://github.com/kit1980
2023-04-10 22:07:15 +00:00
Zafar
b7afee8a27 Lazy deprecation import function in torch.nn (#83834)
This introduces a mechanism to show a deprecation warning on import.
This is achieved through override of the `__getattr__` in the modules
that need the migration. See https://peps.python.org/pep-0562/ for
details.

Some of the codes under torch.nn are migrating, and will require
a deprecation warning on import. Specifically, quantized modules are
in the process of migration to the `torch.ao` package
(see https://github.com/pytorch/pytorch/issues/81667).

Pull Request resolved: https://github.com/pytorch/pytorch/pull/83834
Approved by: https://github.com/albanD
2022-08-23 00:54:44 +00:00