Skip to content

update HistogramObserver to be scriptable#51001

Merged
lyoka merged 4 commits intogh/lyoka/1/basefrom
gh/lyoka/1/head
Jan 26, 2021
Merged

update HistogramObserver to be scriptable#51001
lyoka merged 4 commits intogh/lyoka/1/basefrom
gh/lyoka/1/head

Conversation

@lyoka
Copy link
Copy Markdown
Contributor

@lyoka lyoka commented Jan 24, 2021

Stack from ghstack:

fix tests in TestQuantizeJitOps

Differential Revision: D26038759

fix tests in TestQuantizeJitOps

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

facebook-github-bot commented Jan 24, 2021

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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.

lyoka pushed a commit that referenced this pull request Jan 24, 2021
fix tests in TestQuantizeJitOps

ghstack-source-id: 3fb3a8c
Pull Request resolved: #51001
fix tests in TestQuantizeJitOps

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

[ghstack-poisoned]
lyoka pushed a commit that referenced this pull request Jan 25, 2021
fix tests in TestQuantizeJitOps

ghstack-source-id: 4295d57
Pull Request resolved: #51001
loaded = torch.jit.load(buf)
self.assertTrue(torch.equal(obs.get_tensor_value()[0], loaded.get_tensor_value()[0]))

class TestHistogramObserver(QuantizationTestCase):
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.

Wondering if the tests in def test_save_load_state_dict_script(self) already cover this test.

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.

that test scripted the model but didn't save to file, and this problem happens at save step.

Comment thread torch/quantization/observer.py Outdated
Comment thread torch/quantization/observer.py Outdated
fix tests in TestQuantizeJitOps

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

[ghstack-poisoned]
lyoka pushed a commit to lyoka/pytorch that referenced this pull request Jan 26, 2021
Summary:
Pull Request resolved: pytorch#51001

fix tests in TestQuantizeJitOps

Test Plan:
Imported from OSS
python test/test_quantization.py

Reviewed By: raghuramank100

Differential Revision: D26038759

Pulled By: lyoka

fbshipit-source-id: c38bbe81273654795451366fa72d76453954fad9
fix tests in TestQuantizeJitOps

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

[ghstack-poisoned]
lyoka pushed a commit that referenced this pull request Jan 26, 2021
…file.

ghstack-source-id: 9d63772
Pull Request resolved: #51001

fix brackets indentation

remove 1 variable initialization to resolve type conflict.

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 26, 2021

Codecov Report

Merging #51001 (03da653) into gh/lyoka/1/base (a347c74) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@                 Coverage Diff                 @@
##           gh/lyoka/1/base   #51001      +/-   ##
===================================================
- Coverage            80.91%   80.91%   -0.01%     
===================================================
  Files                 1926     1926              
  Lines               210291   210285       -6     
===================================================
- Hits                170157   170148       -9     
- Misses               40134    40137       +3     

@lyoka lyoka merged commit 20905a9 into gh/lyoka/1/base Jan 26, 2021
facebook-github-bot pushed a commit that referenced this pull request Jan 27, 2021
Summary:
Pull Request resolved: #51081

Pull Request resolved: #51001

fix tests in TestQuantizeJitOps

Test Plan:
Imported from OSS
python test/test_quantization.py

Reviewed By: raghuramank100

Differential Revision: D26038759

Pulled By: lyoka

fbshipit-source-id: 0977ba7b8b26a9f654f20f5c698a7a20ec078c35
@facebook-github-bot facebook-github-bot deleted the gh/lyoka/1/head branch February 25, 2021 15:17
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#51081

Pull Request resolved: pytorch#51001

fix tests in TestQuantizeJitOps

Test Plan:
Imported from OSS
python test/test_quantization.py

Reviewed By: raghuramank100

Differential Revision: D26038759

Pulled By: lyoka

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants