-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Fix upgrader codegen when constant list is 0 #72199
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
Differential Revision: [D33952046](https://our.internmc.facebook.com/intern/diff/D33952046/) [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 4cf3175 (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. |
When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Differential Revision: [D33952046](https://our.internmc.facebook.com/intern/diff/D33952046/) Differential Revision: [D33952046](https://our.internmc.facebook.com/intern/diff/D33952046) [ghstack-poisoned]
When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Differential Revision: [D33952046](https://our.internmc.facebook.com/intern/diff/D33952046/) Differential Revision: [D33952046](https://our.internmc.facebook.com/intern/diff/D33952046) [ghstack-poisoned]
Summary: When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Pull Request resolved: #72199 ghstack-source-id: 148231023 Test Plan: CI Reviewed By: tugsbayasgalan Differential Revision: D33952046 fbshipit-source-id: 359b8a418928c89bbeb446b44774b312c94f03bc
Hey cccclai. |
Summary: When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Pull Request resolved: pytorch/pytorch#72199 ghstack-source-id: 148231023 Test Plan: CI Reviewed By: tugsbayasgalan Differential Revision: D33952046 fbshipit-source-id: 359b8a418928c89bbeb446b44774b312c94f03bc (cherry picked from commit 060490f)
Summary: When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Pull Request resolved: pytorch/pytorch#72199 ghstack-source-id: 148231023 Test Plan: CI Reviewed By: tugsbayasgalan Differential Revision: D33952046 fbshipit-source-id: 359b8a418928c89bbeb446b44774b312c94f03bc (cherry picked from commit 060490f)
Summary: When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Pull Request resolved: pytorch/pytorch#72199 ghstack-source-id: 148231023 Test Plan: CI Reviewed By: tugsbayasgalan Differential Revision: D33952046 fbshipit-source-id: 359b8a418928c89bbeb446b44774b312c94f03bc (cherry picked from commit 060490f)
Summary: When the constant list is empty, previous codegen will generate something like ``` std::vector<c10::IValue>({ }), // constants list, ``` However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead. ``` std::vector<c10::IValue>(), // constants list, ``` Pull Request resolved: pytorch/pytorch#72199 ghstack-source-id: 148231023 Test Plan: CI Reviewed By: tugsbayasgalan Differential Revision: D33952046 fbshipit-source-id: 359b8a418928c89bbeb446b44774b312c94f03bc (cherry picked from commit 060490f)
Stack from ghstack:
When the constant list is empty, previous codegen will generate something like
However it will fail quick-check, because it includes trailing spaces. This pr will generate the following instead.
Differential Revision: D33952046
Differential Revision: D33952046