-
Notifications
You must be signed in to change notification settings - Fork 24.9k
[inductor] Add return types to functions named (_?)(is|has)_.* #155928
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/rec/154/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155928
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 7de7764 with merge base ff0d56d ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
unsubbing as it is not correct |
Ah, sorry, @ezyang, I left it in draft, this was just to see how well an automatic script could do this... though I intend to clean it up and send it for review. |
@@ -19,7 +19,7 @@ | |||
log = logging.getLogger(__name__) | |||
|
|||
|
|||
def is_static_int(number): | |||
def is_static_int(number) -> bool: |
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.
same as above
@@ -1592,7 +1592,7 @@ def unwrap_tensor(x: Union[TensorBox, ir.StorageBox]) -> ir.IRNode: | |||
|
|||
return x | |||
|
|||
def is_reduction(t): | |||
def is_reduction(t) -> bool: |
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.
def is_reduction(t) -> bool: | |
def is_reduction(t) -> TypeGuard[ir.ComputedBuffer]: |
@Skylion007 Took every suggestion! |
@Skylion007 Updated! |
-> bool
to functions named is_*
or _is_*
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Rebase failed due to Command
Raised by https://github.com/pytorch/pytorch/actions/runs/16750203924 |
Stack from ghstack (oldest at bottom):
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @ezyang @malfet @xuzhao9 @gramster @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov