forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quant] [Inductor] Fix an issue in QConv Binary Pattern Match (pytorc…
…h#114541) **Summary** Add the `extra_check` in `_register_quantized_conv_binary_lowering` to skip the pattern which matched unexpected. To match a Conv-Binary pattern, we should expect the extra input of binary node comes from a dequant pattern instead of a constant scalar. **Test Plan** ``` python -m pytest test_mkldnn_pattern_matcher.py -k test_qconv2d_add_2 ``` Pull Request resolved: pytorch#114541 Approved by: https://github.com/jgong5, https://github.com/jerryzh168 ghstack dependencies: pytorch#114540
- Loading branch information
1 parent
8556a09
commit 11f11e9
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters