File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def get_original_aten(self) -> Optional[torch._ops.OpOverload]:
36
36
try :
37
37
import torchao .quantization .quant_primitives # noqa
38
38
39
- return torch .ops .quant .quantize_affine .default
39
+ return torch .ops .torchao .quantize_affine .default
40
40
except :
41
41
return None
42
42
@@ -48,7 +48,7 @@ def get_original_aten(self) -> Optional[torch._ops.OpOverload]:
48
48
try :
49
49
import torchao .quantization .quant_primitives # noqa
50
50
51
- return torch .ops .quant .dequantize_affine .default
51
+ return torch .ops .torchao .dequantize_affine .default
52
52
except :
53
53
return None
54
54
@@ -60,6 +60,6 @@ def get_original_aten(self) -> Optional[torch._ops.OpOverload]:
60
60
try :
61
61
import torchao .quantization .quant_primitives # noqa
62
62
63
- return torch .ops .quant .choose_qparams_affine .default
63
+ return torch .ops .torchao .choose_qparams_affine .default
64
64
except :
65
65
return None
Original file line number Diff line number Diff line change @@ -402,9 +402,9 @@ def _test_groupwise_dq_linear(
402
402
.export ()
403
403
.check_count (
404
404
{
405
- "torch.ops.quant .choose_qparams_affine.default" : 1 * num_linears ,
406
- "torch.ops.quant .quantize_affine.default" : 1 * num_linears ,
407
- "torch.ops.quant .dequantize_affine.default" : 2 * num_linears ,
405
+ "torch.ops.torchao .choose_qparams_affine.default" : 1 * num_linears ,
406
+ "torch.ops.torchao .quantize_affine.default" : 1 * num_linears ,
407
+ "torch.ops.torchao .dequantize_affine.default" : 2 * num_linears ,
408
408
"torch.ops.aten.linear.default" : 1 * num_linears ,
409
409
}
410
410
)
You can’t perform that action at this time.
0 commit comments