Skip to content

Commit dd4fbd8

Browse files
authored
Fix slice quant pattern match bug
1 parent 6b545a2 commit dd4fbd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exir/passes/_quant_patterns_and_replacements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ def pattern(x, dim, start, end, x_scale, x_zero_point, x_qmin, x_qmax):
968968
x, x_scale, x_zero_point, x_qmin, x_qmax, torch.uint8
969969
)
970970
x = torch.ops.aten.slice_copy.Tensor(x, dim, start, end)
971-
x = torch.ops.quantized_decomposed.dequantize_per_tensor.default(
971+
x = torch.ops.quantized_decomposed.quantize_per_tensor.default(
972972
x, x_scale, x_zero_point, x_qmin, x_qmax, torch.uint8
973973
)
974974
return x

0 commit comments

Comments
 (0)