We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae68a0 commit 50d6d7fCopy full SHA for 50d6d7f
backends/example/example_quantizer.py
@@ -9,11 +9,14 @@
9
10
import torch
11
from executorch.backends.example.example_operators.ops import module_to_annotator
12
-from executorch.backends.xnnpack.quantizer.xnnpack_quantizer_utils import OperatorConfig
13
from torch import fx
14
from torchao.quantization.pt2e.graph_utils import find_sequential_partitions
15
from torchao.quantization.pt2e.observer import HistogramObserver, MinMaxObserver
16
-from torchao.quantization.pt2e.quantizer import QuantizationSpec, Quantizer
+from torchao.quantization.pt2e.quantizer import (
+ OperatorConfig,
17
+ QuantizationSpec,
18
+ Quantizer,
19
+)
20
21
22
def get_uint8_tensor_spec(observer_or_fake_quant_ctr):
0 commit comments