Skip to content
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

typing compile_fx.py #138033

Closed
wants to merge 6 commits into from
Closed

Conversation

aorenste
Copy link
Contributor

@aorenste aorenste commented Oct 15, 2024

Type annotations for compile_fx.

  • Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used Any just to get the rest landed.
  • There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.

Stack from ghstack (oldest at bottom):

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov @rec

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Oct 15, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/138033

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 6725cf5 with merge base 2d3455e (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

aorenste added a commit that referenced this pull request Oct 15, 2024
ghstack-source-id: b7d7567374397cb7d946b77c8cc18c454da0f238
Pull Request resolved: #138033
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang rec

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Oct 15, 2024
ghstack-source-id: 1991706f15ca6a846e97778fa91030fb07b50a66
Pull Request resolved: #138033
Type annotations for compile_fx.  
- Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used `Any` just to get the rest landed.
- There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.




cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang rec

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: 32b317a8a9ea77580d93b35a26b30f01f77caca9
Pull Request resolved: #138033
@aorenste aorenste marked this pull request as ready for review October 16, 2024 15:18
Type annotations for compile_fx.  
- Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used `Any` just to get the rest landed.
- There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.




cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang rec

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Oct 16, 2024
ghstack-source-id: 752858322b39f99a3ff81ca205a4ab99bdcf1833
Pull Request resolved: #138033
Type annotations for compile_fx.  
- Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used `Any` just to get the rest landed.
- There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.




cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang rec

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Oct 18, 2024
ghstack-source-id: cd47cc6bb23e9a1c59893999adbef9f4334cc628
Pull Request resolved: #138033
Type annotations for compile_fx.  
- Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used `Any` just to get the rest landed.
- There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.




cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang rec

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Oct 21, 2024
ghstack-source-id: fb867e4e07406ee5e5ec2433e1c59015c1ca81a3
Pull Request resolved: #138033
@aorenste
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 21, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request Oct 22, 2024
Summary:
Type annotations for compile_fx.
- Some of the stuff here is pretty complicated (functions which return functions that take functions) so I bailed on those and used `Any` just to get the rest landed.
- There are also changes to type signatures in other files which I did just to let mypy know more about the types in compile_fx.py.

X-link: pytorch/pytorch#138033
Approved by: https://github.com/Skylion007

Reviewed By: wdvr

Differential Revision: D64714765

Pulled By: aorenste

fbshipit-source-id: 262f5cb9b2171e96ce9f895772bd5778ddb4ebe0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants