Skip to content

[quant] Update qbatch_norm name to qbatch_norm2d#36494

Closed
supriyar wants to merge 4 commits intogh/supriyar/82/basefrom
gh/supriyar/82/head
Closed

[quant] Update qbatch_norm name to qbatch_norm2d#36494
supriyar wants to merge 4 commits intogh/supriyar/82/basefrom
gh/supriyar/82/head

Conversation

@supriyar
Copy link
Copy Markdown
Contributor

@supriyar supriyar commented Apr 13, 2020

Stack from ghstack:

Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D21008831

Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@supriyar supriyar requested a review from apaszke as a code owner April 13, 2020 17:19
supriyar added a commit that referenced this pull request Apr 13, 2020
Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 8afa440
Pull Request resolved: #36494
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Apr 13, 2020

💊 Build failures summary and remediations

As of commit 3a593cf (more details on the Dr. CI page):


None of the build failures appear to be your fault 💚


  • 1/1 broken upstream at merge base 999d7f6 on Apr 13 from 8:57pm to 11:05pm PDT (5 commits; 70b826a - 411ccce)

    Please rebase on the viable/strict branch (expand for instructions)

    If your commit is newer than viable/strict, you can try basing on an older, stable commit:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase --onto FETCH_HEAD $(git merge-base origin/master HEAD)
    

    If your commit is older than viable/strict:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase FETCH_HEAD
    

    Check out the recency history of this "viable master" tracking branch.


🚧 1 upstream failure:

These were probably caused by upstream breakages:


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 on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 16 times.

Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@supriyar supriyar requested a review from jerryzh168 April 13, 2020 22:00

static auto registry = torch::RegisterOperators().op(
"quantized::batch_norm(Tensor qx, "
"quantized::batch_norm2d(Tensor qx, "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to keep quantized::batch_norm for BC?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. The aten::quantized_batch_norm is still preserving bc.
cc @lly-zero-one for new op signature.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also change the convert script?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NVM, I think I just need to update the model.

Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D21008831](https://our.internmc.facebook.com/intern/diff/D21008831)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 4ebb127.

@facebook-github-bot facebook-github-bot deleted the gh/supriyar/82/head branch April 18, 2020 14:17
karansachdev-1012 pushed a commit to karansachdev-1012/pytorch that referenced this pull request Feb 17, 2026
Summary:
Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d
Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 3ff0bf7
Pull Request resolved: pytorch/pytorch#36494
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#36494

Make name consistent with op. Since we have batch_norm2d and batch_norm3d ops

Test Plan:
python test/quantization/test_quantized.py test_batch_norm2d

Imported from OSS

Differential Revision: D21008831

fbshipit-source-id: f81ca71a331d5620fd6a3f6175020a30f2e2566b
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.

5 participants