File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
backends/xnnpack/partition/config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,15 @@ class DeQuantizeAffineConfig(QDQAffineConfigs):
4242 target_name = "dequantize_affine.default"
4343
4444 def get_original_aten (self ) -> Optional [torch ._ops .OpOverload ]:
45- torchao .quantization .quant_primitives # noqa
45+ import torchao .quantization .quant_primitives # noqa
46+
4647 return torch .ops .torchao .dequantize_affine .default
4748
4849
4950class ChooseQParamsAffineConfig (QDQAffineConfigs ):
5051 target_name = "choose_qparams_affine.default"
5152
5253 def get_original_aten (self ) -> Optional [torch ._ops .OpOverload ]:
53- torchao .quantization .quant_primitives # noqa
54+ import torchao .quantization .quant_primitives # noqa
55+
5456 return torch .ops .torchao .choose_qparams_affine .default
You can’t perform that action at this time.
0 commit comments