-
Notifications
You must be signed in to change notification settings - Fork 26.3k
qlinear: Remove legacy cpp_custom_type_hack support #72680
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
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit cda6744 (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).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
@jerryzh168 can you take a look at this please? |
Ref pytorch#72263 for cpp_custom_type_hack removal `qlinear_prepack` and `qlinear_unpack` were updated to use torchbind and the `cpp_custom_type_hack` overloads marked with a deprecation warning in pytorch#38101 which was in the PyTorch 1.6 release. So, we are safe to break BC here.
3ab4609 to
cda6744
Compare
|
@jerryzh168 ping |
jerryzh168
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.
lg, thanks!
|
@jerryzh168 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Ref #72263 for cpp_custom_type_hack removal `qlinear_prepack` and `qlinear_unpack` were updated to use torchbind and the `cpp_custom_type_hack` overloads marked with a deprecation warning in #38101 which was in the PyTorch 1.6 release. So, we are safe to break BC here. The deprecation warning only appears in unpack, but you can't use one without the other I think that's still okay. Pull Request resolved: #72680 Reviewed By: george-qi Differential Revision: D35056994 Pulled By: jerryzh168 fbshipit-source-id: cc046b9fa00d0219a4510854204564f4ea23da4b
|
Hey @peterbell10. |
|
@peterbell10 do we need to write BC-breaking notes for this one? |
Summary: Ref #72263 for cpp_custom_type_hack removal `qlinear_prepack` and `qlinear_unpack` were updated to use torchbind and the `cpp_custom_type_hack` overloads marked with a deprecation warning in #38101 which was in the PyTorch 1.6 release. So, we are safe to break BC here. The deprecation warning only appears in unpack, but you can't use one without the other I think that's still okay. Pull Request resolved: #72680 Reviewed By: george-qi Differential Revision: D35056994 Pulled By: jerryzh168 fbshipit-source-id: cc046b9fa00d0219a4510854204564f4ea23da4b (cherry picked from commit 31abbf1)
|
I've added a short note just in case. |
Ref #72263 for cpp_custom_type_hack removal
qlinear_prepackandqlinear_unpackwere updated to use torchbindand the
cpp_custom_type_hackoverloads marked with a deprecationwarning in #38101 which was in the PyTorch 1.6 release. So, we are
safe to break BC here.
The deprecation warning only appears in unpack, but you can't use one
without the other I think that's still okay.
BC-breaking note
TorchScript models exported prior to PyTorch 1.6 using quantized linear operators will no longer work
TorchScipt models created with PyTorch 1.5 or earlier and using the operators
quantized::linear_prepack,quantized::linear_prepack_fp16,quantized::linear_unpack, orquantized::linear_unpack_fp16will no longer work and need to be re-exported.