File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1815,27 +1815,27 @@ def matcher_check_fn():
1815
1815
matcher_check_fn = matcher_check_fn ,
1816
1816
is_qat = is_qat ,
1817
1817
)
1818
- try :
1819
- # For python wrapper
1818
+ if torch . _inductor . config . cpp_wrapper :
1819
+ # For CPP wrapper
1820
1820
self ._test_code_common (
1821
1821
mod ,
1822
1822
(v ,),
1823
1823
[
1824
- "torch.ops.onednn.qlinear_pointwise.default " ,
1825
- "torch.ops.onednn.qlinear_pointwise.binary " ,
1824
+ "op_qlinear_pointwise.call " ,
1825
+ "op_qlinear_pointwise_binary.call " ,
1826
1826
],
1827
1827
[],
1828
1828
check_quantization = True ,
1829
1829
num_include_ops = [2 , 2 ],
1830
1830
)
1831
- except AssertionError :
1832
- # For CPP wrapper
1831
+ else :
1832
+ # For python wrapper
1833
1833
self ._test_code_common (
1834
1834
mod ,
1835
1835
(v ,),
1836
1836
[
1837
- "op_qlinear_pointwise.call " ,
1838
- "op_qlinear_pointwise_binary.call " ,
1837
+ "torch.ops.onednn.qlinear_pointwise.default " ,
1838
+ "torch.ops.onednn.qlinear_pointwise.binary " ,
1839
1839
],
1840
1840
[],
1841
1841
check_quantization = True ,
You can’t perform that action at this time.
0 commit comments