Skip to content

[quant][graphmode] Fold quantized prepacking ops#35077

Closed
jerryzh168 wants to merge 26 commits intogh/jerryzh168/258/basefrom
gh/jerryzh168/258/head
Closed

[quant][graphmode] Fold quantized prepacking ops#35077
jerryzh168 wants to merge 26 commits intogh/jerryzh168/258/basefrom
gh/jerryzh168/258/head

Conversation

@jerryzh168
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 commented Mar 20, 2020

Stack from ghstack:

Summary:
Fold the prepack ops: quantized::linear_prepack and quantized::conv2d_prepack after
freeze

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: D20655301

Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 20, 2020
…per_channel pure"


Summary:
We want to do constant propagation through these ops

Test Plan:
see next PR: #35077

Reviewers:
.
Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 20, 2020
Summary:
We want to do constant propagation through these ops

Test Plan:
see next PR: #35077

Reviewers:
.
Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 20, 2020
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

ghstack-source-id: bcfc205
Pull Request resolved: #35077
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 20, 2020
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

ghstack-source-id: bcfc205
Pull Request resolved: #35077
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Mar 20, 2020

💊 CircleCI build failures summary and remediations

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


None of the build failures appear to be your fault 💚


  • 1/1 broken upstream at merge base 04a3345 from Mar 27 until Mar 28 (23 commits; 0c16ced - a9b540d)

    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 110 times.

d.dedup();
}

void FoldQuantizedPrepackingOps(Module& module) {
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.

I thought coding convention was camelcase for function names.

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.

I guess I also have mixed that up on some of my passes.

Copy link
Copy Markdown
Contributor Author

@jerryzh168 jerryzh168 Mar 20, 2020

Choose a reason for hiding this comment

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

yeah we are following camelcase for methods and helper functions I think. For jit passes I saw we are using Pascal case, e.g.: https://bddppq.github.io/codebrowser/pytorch/pytorch/torch/csrc/jit/passes/constant_propagation.h.html
I'm not sure why though

Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Reviewers:
.

Subscribers:

Tasks:

Tags:

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

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

This pull request has been merged in 76a8d30.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/258/head branch March 31, 2020 14:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#35077

Fold the prepack ops: `quantized::linear_prepack` and `quantized::conv2d_prepack` after
`freeze`

Test Plan:
python test/test_jit.py

Imported from OSS

Differential Revision: D20655301

fbshipit-source-id: fbb4223323f788c88db7b55cfafda46fad106d49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants