File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
backends/cadence/aot/quantizer Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ exclude_patterns = [
390390 " backends/arm/test/ops/**" ,
391391 " backends/vulkan/quantizer/**" ,
392392 " backends/vulkan/test/**" ,
393- " backends/cadence/aot/quantizer/**" ,
394393 " backends/qualcomm/quantizer/**" ,
395394 " examples/qualcomm/**" ,
396395 " backends/xnnpack/quantizer/**" ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ python_library(
99 ],
1010 deps = [
1111 "//caffe2:torch",
12+ "//pytorch/ao:torchao",
1213 ],
1314)
1415
@@ -34,7 +35,6 @@ python_library(
3435 ":patterns",
3536 ":utils",
3637 "//caffe2:torch",
37- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer_utils",
3838 ],
3939)
4040
Original file line number Diff line number Diff line change 1515
1616from torch import fx
1717from torch ._ops import OpOverload
18- from torch . ao . quantization .quantizer import (
18+ from torchao . quantization . pt2e .quantizer import (
1919 DerivedQuantizationSpec ,
2020 SharedQuantizationSpec ,
2121)
Original file line number Diff line number Diff line change 2929 is_annotated ,
3030 no_outside_users ,
3131)
32- from executorch .backends .xnnpack .quantizer .xnnpack_quantizer_utils import (
32+
33+ from torch import fx
34+
35+ from torchao .quantization .pt2e import HistogramObserver , MinMaxObserver
36+ from torchao .quantization .pt2e .quantizer import (
37+ ComposableQuantizer ,
38+ DerivedQuantizationSpec ,
3339 OperatorConfig ,
3440 QuantizationAnnotation ,
3541 QuantizationConfig ,
3642 QuantizationSpec ,
43+ Quantizer ,
3744)
3845
39- from torch import fx
40-
41- from torch .ao .quantization .observer import HistogramObserver , MinMaxObserver
42- from torch .ao .quantization .quantizer import DerivedQuantizationSpec , Quantizer
43- from torch .ao .quantization .quantizer .composable_quantizer import ComposableQuantizer
44-
4546
4647act_qspec_asym8s = QuantizationSpec (
4748 dtype = torch .int8 ,
Original file line number Diff line number Diff line change 1414import torch
1515from torch import fx
1616from torch ._ops import OpOverload
17- from torch .ao .quantization import ObserverOrFakeQuantize
1817
1918from torch .fx import GraphModule
2019from torch .fx .passes .utils .source_matcher_utils import (
2120 check_subgraphs_connected ,
2221 SourcePartition ,
2322)
23+ from torchao .quantization .pt2e import ObserverOrFakeQuantize
2424
2525
2626def quantize_tensor_multiplier (
You can’t perform that action at this time.
0 commit comments