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
[quant] Fix dimension for output of batchnorm 1d #59264
Conversation
Summary: Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 6070d79 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages: pytorch_linux_bionic_py3_6_clang9_noarch_test (1/1)Step: "Run tests" (full log | diagnosis details | 🔁 rerun)
|
Job | Step | Action |
---|---|---|
Windows CI (pytorch-win-vs2019-cpu-py3) / render_test_results | Unknown | 🔁 rerun |
This comment was automatically generated by Dr. CI (expand for details).
Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group.
Summary: Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 22b6872bbba6575c45ac3882ef7355efd23b8583 Pull Request resolved: #59264
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@jerryzh168 You probably need to disable the 1d case in
and
They only pass now because there is a bug in the underlying comparison mechanism. Try put a |
makes sense, this PR would fix the issue though, if we land this PR before yours it would not fail I think? |
If I'm not mistaken you only need to remove the
as well as the
|
are you saying I don't need to add an extra test for batchnorm 1d? I can remove that |
Oh sorry, I misunderstood the intent of the PR. Ignore my earlier comment. Before you land this PR though, could you locally put in |
yes, will do that |
Summary: fixes: #59200 Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28810597](https://our.internmc.facebook.com/intern/diff/D28810597) [ghstack-poisoned]
Summary: Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: dca48d44bffbb2cb465e1ed53030e96b509ee0fb Pull Request resolved: #59264
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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.
LGTM! If it passes locally with the suggested check, it should be fine.
yes it did pass the shape check locally |
Summary: fixes: #59200 Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28810597](https://our.internmc.facebook.com/intern/diff/D28810597) [ghstack-poisoned]
Summary: Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 111c8fdf6a50f6b11ffb2301a2686345153fb37a Pull Request resolved: #59264
Summary: fixes: #59200 Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D28810597](https://our.internmc.facebook.com/intern/diff/D28810597) [ghstack-poisoned]
Summary: Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: a6678302fae0de0a131359832ec0621585277694 Pull Request resolved: #59264
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This pull request has been merged in 9de0c21. |
Summary: Pull Request resolved: pytorch#59264 Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension for input Tensor is 2, this PR adds an extra squeeze Test Plan: Imported from OSS Reviewed By: supriyar Differential Revision: D28810597 fbshipit-source-id: 879873bbf39ed3607762684694f6e81b423740c2
Stack from ghstack:
Summary:
fixes: #59200
Previously batchnorm 1d did unsqueeze twice but only squeeze once before return when the dimension
for input Tensor is 2, this PR adds an extra squeeze
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D28810597