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 scheduler.py [1/2]: Bug fix #126610

Closed
wants to merge 9 commits into from

Conversation

aorenste
Copy link
Contributor

@aorenste aorenste commented May 18, 2024

Found while getting scheduler.py to typecheck - split off to make reviewing easier.

  1. is_template: I'm pretty sure this is a bug. Based on the definition of is_template I'm pretty sure we want to return the node's get_template_node(), not the node itself.

  2. can_free: It seems that this was intended to b a raise, not a return.

Stack from ghstack (oldest at bottom):

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 18, 2024

🔗 Helpful Links

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

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 0ba5c6e with merge base 6550386 (image):

UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:

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

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

[ghstack-poisoned]
@aorenste aorenste changed the title Bug fix typing scheduler.py [3/4]: Bug fix May 18, 2024
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
@aorenste aorenste changed the title typing scheduler.py [3/4]: Bug fix typing scheduler.py [2/3]: Bug fix May 18, 2024
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
Split off to make reviewing easier.
 
I'm pretty sure this is a bug, found while getting scheduler.py to typecheck.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template`, not the node itself.




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

[ghstack-poisoned]
@aorenste aorenste changed the title typing scheduler.py [2/3]: Bug fix typing scheduler.py [1/2]: Bug fix May 20, 2024
@aorenste aorenste requested a review from eellison May 20, 2024 17:48
@aorenste aorenste marked this pull request as ready for review May 20, 2024 17:48
@aorenste aorenste added the topic: not user facing topic category label May 20, 2024
Found while getting scheduler.py to typecheck - split off to make reviewing easier.
 
1. is_template: I'm pretty sure this is a bug.  Based on the definition of `is_template` I'm pretty sure we want to return the node's `get_template_node()`, not the node itself.

2. can_free: It seems that this was intended to b a raise, not a return.




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

[ghstack-poisoned]
@aorenste
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 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

OnlyFor pushed a commit to OnlyFor/pytorch that referenced this pull request May 22, 2024
ghstack-source-id: 9a9cf92b19d709f969a7dc0081b24b5bb8dd36eb
Pull Request resolved: pytorch#126610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants