-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant][ns] Fix ns tool bug for mobilenetv2/v3 #74149
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
Conversation
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 2079ad7 (more details on the Dr. CI page):
🕵️ 3 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
| Job | Step | Action |
|---|---|---|
| Test | 🔁 rerun |
This comment was automatically generated by Dr. CI (expand for details).
Please report bugs/suggestions to the (internal) Dr. CI Users group.
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
thanks for fixing this, would it be possible to add a reproducible test plan? |
| "myadd_relu.stats", | ||
| "my_scalar_add.stats", | ||
| "my_scalar_mul.stats", | ||
| # "my_scalar_add.stats", # empty |
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.
is this change relevant?
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.
+1, what's the context for this?
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.
this tensor is empty, it would be filtered after this PR.
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.
in that case, I think it would be better to delete the lines instead of commenting them out
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.
sure
vkuzo
left a comment
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.
requesting changes for test plan
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
| @skip_if_no_torchvision | ||
| def test_mobilenet(self): | ||
| from torchvision.models.quantization import mobilenet_v2, mobilenet_v3_large | ||
| self._test_vision_model(mobilenet_v2(pretrained=True, quantize=False)) |
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.
can we do separate test cases for these two models, instead of combining into one test case?
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.
updated.
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
vkuzo
left a comment
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.
looks good, thanks for fixing this!
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: mobilenet v2/v3 failed when using ns tool to analysis the model original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor Test Plan: python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D34851886](https://our.internmc.facebook.com/intern/diff/D34851886) [ghstack-poisoned]
|
@terrychenism has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: #74149 mobilenet v2/v3 failed when using ns tool to analysis the model due to the empty the tensor, fixed it by filtering the empty tensor Test Plan: Imported from OSS Reviewed By: vkuzo Differential Revision: D34851886 fbshipit-source-id: db94fd5cef7d4a7a128d46bfe3f5ff4e532845fe
|
Hey @terrychenism. |
Stack from ghstack (oldest at bottom):
Summary:
mobilenet v2/v3 failed when using ns tool to analysis the model
original ns tool would generate the empty tensor, they cannot pass the function of error calculation. we fixed it by filtering the empty tensor
Test Plan:
python3 test/test_quantization.py TestNumericSuiteEager.test_mobilenet
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D34851886