-
Notifications
You must be signed in to change notification settings - Fork 25.1k
ConvPackedParams: remove legacy format #43651
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: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
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.
So the legacy format will be removed completely?
this removes the code for models to save the legacy format. The code to read the legacy format would still be there for awhile. |
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: cfeeb22 Pull Request resolved: #43651
💊 CI failures summary and remediationsAs of commit 6c00d92 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis 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 or post in the (internal) Dr. CI Users group. This comment has been revised 46 times. |
Why do we need to land this later and not at the same time as the previous PR? |
pretty much to handle this case:
if revision A does not know how to handle models created with revision B, the behavior is undefined. So, we first create revision A which knows how to read the new format but still uses the old format. We then wait N days (to allow most people to get on revision A), and then delete the old path. |
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: b9484b2 Pull Request resolved: #43651
Codecov Report
@@ Coverage Diff @@
## gh/vkuzo/132/base #43651 +/- ##
====================================================
Coverage ? 67.99%
====================================================
Files ? 382
Lines ? 49380
Branches ? 0
====================================================
Hits ? 33578
Misses ? 15802
Partials ? 0 Continue to review full report at Codecov.
|
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: c5bd1ff Pull Request resolved: #43651
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 2534b3b Pull Request resolved: #43651
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 864f62e Pull Request resolved: #43651
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: e57f6c6 Pull Request resolved: #43651
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 5cf3b89 Pull Request resolved: #43651
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 181a12c Pull Request resolved: #43651
@@ -167,9 +152,6 @@ ConvParamsSerializationType serialize_conv( | |||
auto output_padding = params->output_padding().vec(); | |||
params_vec.insert(params_vec.end(), output_padding.begin(), | |||
output_padding.end()); | |||
for (int i = 0; i < kSpatialDim; i++) { |
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.
Seems like this was left in #39714 by accident, and tests did not catch it. This PR adds test coverage for this path, so we need to fix it to land.
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D23355480](https://our.internmc.facebook.com/intern/diff/D23355480) [ghstack-poisoned]
Summary: This is a forward compatibility follow-up to #43086. We switch the conv serialization to output the v2 format instead of the v1 format. The plan is to land this 1 - 2 weeks after the base PR. Test Plan: ``` python test/test_quantization.py TestSerialization.test_conv2d_graph_v2 python test/test_quantization.py TestSerialization.test_conv2d_nobias_graph_v2 ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 297cfe0 Pull Request resolved: #43651
This pull request has been merged in b3f0297. |
Stack from ghstack:
Summary:
This is a forward compatibility follow-up to
#43086. We switch the
conv serialization to output the v2 format instead of the v1 format.
The plan is to land this 1 - 2 weeks after the base PR.
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D23355480