Guard weight_dequant.args[1] access in _quantize_fused_conv_bias pass#19623
Conversation
Summary: For models whose conv weight isn't wrapped in a `dequantize_per_tensor/per_channel` call `weight_dequant.args` has fewer than 2 elements and the access throws `IndexError`. Adds a guard to prevent this error. Differential Revision: D105503056
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19623
Note: Links to docs will display an error until the docs builds have been completed. ❗ 2 Active SEVsThere are 2 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit f0f1163 with merge base 824cbff ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@ethansfng has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105503056. |
This PR needs a
|
Summary:
For models whose conv weight isn't wrapped in a
dequantize_per_tensor/per_channelcallweight_dequant.argshas fewer than 2 elements and the access throwsIndexError.Adds a guard to prevent this error.
Differential Revision: D105503056