Skip to content

Commit 680f222

Browse files
committed
up
1 parent 59171d8 commit 680f222

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

torchao/experimental/q_dq_layout.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
import torch
1010

11-
from torchao.dtypes.affine_quantized_tensor import register_layout
12-
from torchao.dtypes.affine_quantized_tensor_ops import (
13-
register_aqt_quantized_linear_dispatch,
14-
)
1511
from torchao.dtypes.affine_quantized_tensor import (
1612
AffineQuantizedTensor,
13+
register_layout,
1714
)
15+
from torchao.dtypes.affine_quantized_tensor_ops import (
16+
register_aqt_quantized_linear_dispatch,
17+
)
18+
1819
logger = logging.getLogger(__name__)
1920
logger.setLevel(logging.WARNING)
2021

@@ -33,11 +34,7 @@ class QDQLayout(PlainLayout):
3334
pass
3435

3536

36-
from torchao._executorch_ops import (
37-
_quantized_decomposed_dequantize_per_channel_group_wrapper,
38-
)
3937
from torchao.dtypes.uintx.plain_layout import PlainAQTTensorImpl
40-
from torchao.quantization.utils import per_token_dynamic_quant
4138

4239

4340
@register_layout(QDQLayout)
@@ -60,7 +57,6 @@ def _linear_impl(input_tensor, weight_tensor, bias):
6057
# assert isinstance(input_tensor, )
6158
# if isinstance(input_tensor, AffineQuantizedTensor):
6259

63-
6460
# input_tensor = input_tensor.dequantize()
6561
# if isinstance(weight_tensor, AffineQuantizedTensor):
6662
# weight_tensor = weight_tensor.dequantize()

0 commit comments

Comments
 (0)