-
Notifications
You must be signed in to change notification settings - Fork 421
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
[Xnnpack] Accept default padding value for torch.constant_pad_nd #7469
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7469
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit f3904a8 with merge base cb568fa (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D67756862 |
Summary: xnnpack delegation for pad op assumes that the pad value is always present. However, constant_pad_nd defults to padding value of 0.0 if it's not present in the op. When absent, it errors out in `padding_value = cast(float, node.args[2])` with `IndexError: tuple index out of range`. {F1974161274} This diff defaults to padding value of 0.0 if the arg is absent from torch.constant_pad_nd op. Differential Revision: D67756862
373dcbd
to
a694541
Compare
This pull request was exported from Phabricator. Differential Revision: D67756862 |
Summary: xnnpack delegation for pad op assumes that the pad value is always present. However, constant_pad_nd defults to padding value of 0.0 if it's not present in the op. When absent, it errors out in `padding_value = cast(float, node.args[2])` with `IndexError: tuple index out of range`. {F1974161274} This diff defaults to padding value of 0.0 if the arg is absent from torch.constant_pad_nd op. Reviewed By: tarun292 Differential Revision: D67756862
a694541
to
7f644f2
Compare
This pull request was exported from Phabricator. Differential Revision: D67756862 |
Summary: xnnpack delegation for pad op assumes that the pad value is always present. However, constant_pad_nd defults to padding value of 0.0 if it's not present in the op. When absent, it errors out in `padding_value = cast(float, node.args[2])` with `IndexError: tuple index out of range`. {F1974161274} This diff defaults to padding value of 0.0 if the arg is absent from torch.constant_pad_nd op. Reviewed By: tarun292 Differential Revision: D67756862
7f644f2
to
ae97781
Compare
This pull request was exported from Phabricator. Differential Revision: D67756862 |
ae97781
to
725294b
Compare
This pull request was exported from Phabricator. Differential Revision: D67756862 |
Summary: Pull Request resolved: pytorch#7469 xnnpack delegation for pad op assumes that the pad value is always present. However, constant_pad_nd defults to padding value of 0.0 if it's not present in the op. When absent, it errors out in `padding_value = cast(float, node.args[2])` with `IndexError: tuple index out of range`. {F1974161274} This diff defaults to padding value of 0.0 if the arg is absent from torch.constant_pad_nd op. Reviewed By: tarun292 Differential Revision: D67756862
This pull request was exported from Phabricator. Differential Revision: D67756862 |
725294b
to
f3904a8
Compare
Summary:
xnnpack delegation for pad op assumes that the pad value is always present. However, constant_pad_nd defults to padding value of 0.0 if it's not present in the op. When absent, we get the following error in xnnpack delegation:
{F1974161274}
This diff defaults to padding value of 0.0 if the arg is absent from torch.constant_pad_nd op.
Differential Revision: D67756862