Skip to content

Commit 08e45c2

Browse files
committed
Explain import
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 3341243 commit 08e45c2

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

quantization/quantize.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,11 @@
1515
import torch
1616
import torch.nn as nn
1717
import torch.nn.functional as F
18-
from build.utils import (
19-
find_multiple,
20-
get_device_str,
21-
get_precision,
22-
name_to_dtype,
23-
state_dict_device,
24-
)
18+
from build.utils import get_device_str, name_to_dtype, state_dict_device
2519

26-
from quantization.qops import (
27-
LinearAct8Int4DQ,
28-
LinearInt8 as WeightOnlyInt8Linear,
29-
QuantizedEmbedding,
30-
)
31-
from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib # noqa
20+
from quantization.qops import LinearInt8 as WeightOnlyInt8Linear, QuantizedEmbedding
21+
# AttributeError: '_OpNamespace' 'quantized_decomposed' object has no attribute 'quantize_per_channel_group'
22+
from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib # noqa
3223
from torchao.quantization.quant_api import (
3324
Int4WeightOnlyQuantizer,
3425
Int8DynActInt4WeightQuantizer,

0 commit comments

Comments
 (0)