File tree Expand file tree Collapse file tree 4 files changed +17
-10
lines changed Expand file tree Collapse file tree 4 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1010import torch
1111from executorch .backends .example .example_operators .ops import module_to_annotator
1212from torch import fx
13- from torchao .quantization .pt2e .graph_utils import find_sequential_partitions
14- from torchao .quantization .pt2e .observer import HistogramObserver , MinMaxObserver
13+ from torchao .quantization .pt2e import (
14+ find_sequential_partitions ,
15+ HistogramObserver ,
16+ MinMaxObserver ,
17+ )
1518from torchao .quantization .pt2e .quantizer import (
1619 OperatorConfig ,
1720 QuantizationSpec ,
Original file line number Diff line number Diff line change 1010
1111import torch
1212
13- from torchao .quantization .pt2e .fake_quantize import FakeQuantize
14- from torchao .quantization .pt2e .observer import MinMaxObserver , PerChannelMinMaxObserver
13+ from torchao .quantization .pt2e import (
14+ FakeQuantize ,
15+ MinMaxObserver ,
16+ PerChannelMinMaxObserver ,
17+ )
1518from torchao .quantization .pt2e .quantizer import QuantizationSpec
1619
1720
Original file line number Diff line number Diff line change 2828 is_annotated ,
2929 no_outside_users ,
3030)
31- from executorch .backends .xnnpack .quantizer .xnnpack_quantizer_utils import (
31+ from torch import fx
32+ from torchao .quantization .pt2e import HistogramObserver , MinMaxObserver
33+ from torchao .quantization .pt2e .quantizer import (
34+ ComposableQuantizer ,
35+ DerivedQuantizationSpec ,
3236 OperatorConfig ,
3337 QuantizationAnnotation ,
3438 QuantizationConfig ,
3539 QuantizationSpec ,
40+ Quantizer ,
3641)
37- from torch import fx
38- from torchao .quantization .pt2e .observer import HistogramObserver , MinMaxObserver
39- from torchao .quantization .pt2e .quantizer import DerivedQuantizationSpec , Quantizer
40- from torchao .quantization .pt2e .quantizer .composable_quantizer import ComposableQuantizer
4142
4243
4344class NeutronAtenQuantizer (Quantizer ):
Original file line number Diff line number Diff line change 1717import torch .fx
1818
1919from nncf .common .graph .graph import NNCFGraph # type: ignore[import-untyped]
20- from torchao .quantization .pt2e . observer import (
20+ from torchao .quantization .pt2e import (
2121 HistogramObserver ,
2222 PerChannelMinMaxObserver ,
2323 UniformQuantizationObserverBase ,
You can’t perform that action at this time.
0 commit comments