-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Give std/var correction overloads proper defaults #56398
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
Conversation
[ghstack-poisoned]
🔗 Helpful links
❌ 7 New FailuresAs of commit 44f3fa8 (more details on the Dr. CI page): Expand to see more
🕵️ 7 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
ghstack-source-id: 430384f Pull Request resolved: pytorch#56398
ghstack-source-id: 430384f Pull Request resolved: pytorch#56398
[ghstack-poisoned]
[ghstack-poisoned]
|
@mruberry PTAL, forward-compat period should be over now. |
|
@malfet @seemethere ping |
|
Let me reimport it to check it will not regress mobile builds, that sometimes rigidly depend on operator signatures |
|
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) cc mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen chunyuan-w XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx jansel lezcano fdrocha [ghstack-poisoned]
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) cc mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen chunyuan-w XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx jansel lezcano fdrocha [ghstack-poisoned]
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) cc mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen chunyuan-w XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx jansel lezcano fdrocha [ghstack-poisoned]
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) cc mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen chunyuan-w XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx jansel lezcano fdrocha [ghstack-poisoned]
|
@malfet were there any mobile issues? |
|
@malfet what's the state of this PR? Can we land it? |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
|
Rebase failed due to Command Raised by https://github.com/pytorch/pytorch/actions/runs/3605373520 |
|
Sorry for the late reply, but can you please rebase again the latest PyTorch and I'll try to import it again (as you can see it can not be imported as is, as it conflicts with the latest trunk, see above rebase failures) |
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) cc mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang jgong5 Guobing-Chen chunyuan-w XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx jansel lezcano fdrocha [ghstack-poisoned]
|
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
|
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
Ok, just landed internally, I wonder if it will be auto-closed by the bot now... |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour 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 |
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. ghstack-source-id: 2215cb3 Pull Request resolved: pytorch#56398
The correction overloads defaults were left off for forward compatibility reasons, but this FC window expired well over a year ago at this point. Differential Revision: [D29625593](https://our.internmc.facebook.com/intern/diff/D29625593) Pull Request resolved: pytorch#56398 Approved by: https://github.com/mruberry
| yield SampleInput(tensor_nd(), correction=0, keepdim=True) | ||
|
|
||
|
|
||
| def sample_inputs_std_var_unbiased(op_info, device, dtype, requires_grad, **kwargs): |
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.
why do we need unbiased variants of OpInfos? Can't we add them to the regular sample inputs function?
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.
The unbiased variant has supports_out=False due to some overloads not having an equivalent out overload, while correction overloads supports the out argument on all signatures.
Stack from ghstack (oldest at bottom):
correctionvalue andunbiasedargument #55679The correction overloads defaults were left off for forward
compatibility reasons, but this FC window expired well over a year ago
at this point.
Differential Revision: D29625593
cc @mlazos @soumith @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @chunyuan-w @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire @jansel @lezcano @fdrocha