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 10
10
import torch
11
11
from executorch .backends .example .example_operators .ops import module_to_annotator
12
12
from 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
+ )
15
18
from torchao .quantization .pt2e .quantizer import (
16
19
OperatorConfig ,
17
20
QuantizationSpec ,
Original file line number Diff line number Diff line change 10
10
11
11
import torch
12
12
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
+ )
15
18
from torchao .quantization .pt2e .quantizer import QuantizationSpec
16
19
17
20
Original file line number Diff line number Diff line change 28
28
is_annotated ,
29
29
no_outside_users ,
30
30
)
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 ,
32
36
OperatorConfig ,
33
37
QuantizationAnnotation ,
34
38
QuantizationConfig ,
35
39
QuantizationSpec ,
40
+ Quantizer ,
36
41
)
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
41
42
42
43
43
44
class NeutronAtenQuantizer (Quantizer ):
Original file line number Diff line number Diff line change 17
17
import torch .fx
18
18
19
19
from nncf .common .graph .graph import NNCFGraph # type: ignore[import-untyped]
20
- from torchao .quantization .pt2e . observer import (
20
+ from torchao .quantization .pt2e import (
21
21
HistogramObserver ,
22
22
PerChannelMinMaxObserver ,
23
23
UniformQuantizationObserverBase ,
You can’t perform that action at this time.
0 commit comments