Skip to content

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Nov 21, 2019

Stack from ghstack:

Summary:
Changes to make quantizing traced model work:

  1. aten::_convolution(landed by Lingyi)
  2. Added ConstantPooling for traced graph to merge redundant constant nodes
  3. Added FuseLinear to fuse exploded linear function into aten::linear
  4. Refactored the code to identify weight and bias
  5. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

Summary:
att

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing"

Summary:
att

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 21, 2019
Summary:
att

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

ghstack-source-id: a075122
Pull Request resolved: #30210
…acing"

Summary:
att

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@jerryzh168 jerryzh168 requested a review from apaszke as a code owner November 26, 2019 01:58
…acing and fix the issues"

Summary:
Changes to make tracing work
0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
3. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@jerryzh168 jerryzh168 changed the title [quant][graphmode] Add tests for script models got from tracing [quant][graphmode] Add tests for script models got from tracing and fix the issues Nov 26, 2019
…acing and fix the issues"

Summary:
Changes to make tracing work
0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
3. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing and fix the issues"

Summary:
Changes to make tracing work
0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
3. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@jerryzh168 jerryzh168 changed the title [quant][graphmode] Add tests for script models got from tracing and fix the issues [quant][graphmode] Add tests for script models got from tracing and fix issues Nov 26, 2019
…acing and fix issues"

Summary:
Changes to make tracing work

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing and fix issues"

Summary:
Changes to make quantizing traced model work:

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing and fix issues"

Summary:
Changes to make quantizing traced model work:

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing and fix issues"

Summary:
Changes to make quantizing traced model work:

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…acing and fix issues"

Summary:
Changes to make quantizing traced model work:

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Nov 26, 2019
…ix issues

Summary:
Changes to make quantizing traced model work:

0. aten::_convolution(landed by Lingyi)
1. Added ConstantPooling for traced graph to merge redundant constant nodes
2. Added FuseLinear to fuse exploded linear function into `aten::linear`
3. Refactored the code to identify weight and bias
4. Added weight/bias identification for aten::linear

Test Plan:
python test/test_quantization.py

Reviewers:
pt1quant

Subscribers:

Tasks:

Tags:

ghstack-source-id: b40d002
Pull Request resolved: #30210
Copy link

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

This PR has too many independent changes piled in and is hard to review because of that. Please split out those changes into individual PRs (e.g.: 1) renaming stuff in tests without changing logic and formatting stuff, 2) factoring out isAtenFuncNthArg, 3) invoking more passes in insertObservers, 4)... )

@jerryzh168
Copy link
Contributor Author

deprecated by stack: #30473

@jerryzh168 jerryzh168 closed this Nov 26, 2019
@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/144/head branch December 27, 2019 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants