-
Notifications
You must be signed in to change notification settings - Fork 25.2k
ONNX: fix default function value in _optimize_graph #83996
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
Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
🔗 Helpful links
✅ No Failures (0 Pending)As of commit a7a9989 (more details on the Dr. CI page): Expand to see more💚 💚 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. |
Thanks for contributing! Please see inline comment. Also please be sure to sign contributor license agreement. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@BowenBao Thanks for reviewing! I updated the commit according to your comment, and signed the CLA |
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failed |
@pytorchbot rebase |
You don't have permissions to rebase this PR, only the PR author and pytorch organization members may rebase this PR. |
@ThibaultCastells The PR is ready to merge as soon as all CI passing. Could you please do a rebase with latest master to resolve all CI issues? |
c16b543
to
fec7d0a
Compare
@BowenBao I rebased, it looks like they all passed |
@BowenBao Still not successful... Should I recreate the pull request from scratch? |
Let's give rebasing one last try, could you comment with |
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
d22a7f9
to
a7a9989
Compare
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
Summary: The default value for params_dict in _optimize_graph, which is None, throw the following error: > _C._jit_pass_onnx_unpack_quantized_weights( > TypeError: _jit_pass_onnx_unpack_quantized_weights(): incompatible function arguments. The following argument types are supported: > 1. (arg0: torch::jit::Graph, arg1: Dict[str, IValue], arg2: bool) -> Dict[str, IValue] Replacing it by an empty dict fixes the issue (and makes more sense). Pull Request resolved: #83996 Approved by: https://github.com/BowenBao Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/d9ceda49c497bc39c2b360b038ee07e145b32f5b Reviewed By: izaitsevfb Differential Revision: D39297070 fbshipit-source-id: 19b33514b31a5b3b2d4c617ae5b5d4bcb83f0251
The default value for params_dict in _optimize_graph, which is None, throw the following error:
Replacing it by an empty dict fixes the issue (and makes more sense).