-
Notifications
You must be signed in to change notification settings - Fork 24.1k
[BE] Add __all__
to torch/nn/functional.pyi
and torch/return_types.pyi
#150729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh/XuehaiPan/266/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150729
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit e44ca1b with merge base e9e1aac ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…es.pyi` ghstack-source-id: d1097be Pull Request resolved: pytorch#150729
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
Files not reviewed (2)
- torch/_C/return_types.pyi.in: Language not supported
- torch/nn/functional.pyi.in: Language not supported
Comments suppressed due to low confidence (2)
tools/pyi/gen_pyi.py:605
- Consider explicitly using unsorted_dispatched_hints.keys() when extending extra_nn_functional___all__ to make it clear that the keys are being added.
extra_nn_functional___all__.extend(unsorted_dispatched_hints)
tools/pyi/gen_pyi.py:558
- [nitpick] Consider adding a brief comment explaining why 'log_sigmoid' is renamed to 'logsigmoid' to improve code readability.
renamed = {"log_sigmoid": "logsigmoid"}
…es.pyi` ghstack-source-id: d8e7ebd Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: d8e7ebd Pull Request resolved: pytorch#150729
Rebased |
…es.pyi` ghstack-source-id: e6f7fe5 Pull Request resolved: pytorch#150729
Rebased |
Starting merge as part of PR stack under #150732 |
…es.pyi` ghstack-source-id: e6f7fe5 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 95f1870 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: f28293a Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 6d01624 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 6479909 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: e04d4f2 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 5b9b691 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: fbe75cc Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 71d621f Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: b1807a7 Pull Request resolved: pytorch#150729
…es.pyi` ghstack-source-id: 3223b54 Pull Request resolved: pytorch#150729
Stack from ghstack (oldest at bottom):
lintrunner
on generated.pyi
stub files #150732.pyi
stub files #150731gen_pyi
are properly formatted #150730torch/utils/data/datapipes/gen_pyi.py
withtorchgen
#150626__all__
totorch/nn/functional.pyi
andtorch/return_types.pyi
#150729.pyi
stub template to use Generic TypeAlias (PEP 585) and Union Type (PEP 604) #150728gen_pyi.py
to use Generic TypeAlias (PEP 585) and Union Type (PEP 604) #150727torchgen.utils.FileManager
to acceptpathlib.Path
#150726cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @ezyang @bhosmer @bdhirsh @kadeng