-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Allow optional positional arguments for torch.func.functional_call
#134643
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
Allow optional positional arguments for torch.func.functional_call
#134643
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/134643
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 0acaa6a with merge base 356f14e ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
No, the module might not have any inputs. |
When will this merge? I'm wondering whether it will appear in the next release. @zou3519 |
@pytorchbot rebase |
BC lint seems erroneous, we are making a mandatory argument optional |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
@why-in-Shanghaitech if/when the tests pass, you can comment "@pytorchbot merge" and it'll merge the PR. Or I can do that, just comment on this thread again if you don't see it being merged |
Oops... it seems that we have a time-out error... |
@pytorchbot merge -f "unrelated error" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ytorch#134643) This PR resolves pytorch#134408. Add an additional test and have passed the local test. Do you think we should add a post-check to ensure `args` and `kwargs` are not both `None`? It seems to be possible to have modules without inputs. This PR does not include any such post-check. Pull Request resolved: pytorch#134643 Approved by: https://github.com/zou3519
This PR resolves #134408. Add an additional test and have passed the local test.
Do you think we should add a post-check to ensure
args
andkwargs
are not bothNone
? It seems to be possible to have modules without inputs.This PR does not include any such post-check.
cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki