Skip to content

Commit b64c161

Browse files
jerryzh168facebook-github-bot
authored andcommitted
change internal code to only import from _quantize_pt2e (#7)
Summary: X-link: pytorch/pytorch#105162 Pull Request resolved: #7 This is to make public api clear so that we can make implementation details change easier in the future Differential Revision: D47445767 fbshipit-source-id: 211da5c27f312cfa5e4c1ce3dd2926784a2dc12e
1 parent f44283b commit b64c161

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

backends/xnnpack/test/test_xnnpack_utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@
4242
QConfig,
4343
QConfigMapping,
4444
)
45-
from torch.ao.quantization._pt2e.quantizer import QNNPackQuantizer
46-
from torch.ao.quantization._pt2e.quantizer.qnnpack_quantizer import (
45+
46+
from torch.ao.quantization._quantize_pt2e import (
47+
convert_pt2e,
4748
get_symmetric_quantization_config,
49+
prepare_pt2e_quantizer,
50+
QNNPackQuantizer,
4851
)
49-
from torch.ao.quantization._quantize_pt2e import convert_pt2e, prepare_pt2e_quantizer
52+
5053
from torch.ao.quantization.backend_config.executorch import (
5154
get_executorch_backend_config,
5255
)

0 commit comments

Comments
 (0)