mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
## Summary - add type annotations for simple library registry and dispatch rule holder - remove allow-untyped-defs directive ## Testing - `python -m mypy torch/_library/simple_registry.py` *(fails: repo expects mypy==1.16.0)* - `lintrunner -a torch/_library/simple_registry.py` *(fails: attr-defined error in torchgen/gen_schema_utils.py)* - `python test/test_torch.py TestTorch.test_dir` *(fails: ModuleNotFoundError: No module named 'torch')* ------ https://chatgpt.com/codex/tasks/task_e_68aa3cc210488326befdd992c79115a0 Pull Request resolved: https://github.com/pytorch/pytorch/pull/161367 Approved by: https://github.com/Skylion007 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| autograd.py | ||
| custom_ops.py | ||
| fake_class_registry.py | ||
| fake_impl.py | ||
| fake_profile.py | ||
| infer_schema.py | ||
| opaque_object.py | ||
| simple_registry.py | ||
| triton.py | ||
| utils.py | ||