Skip to content

Commit 23c2bc1

Browse files
committed
Refine code
1 parent a05dbd9 commit 23c2bc1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

torchao/quantization/pt2e/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
import torch
66
from torch import Tensor
77

8+
from torchao.quantization import (
9+
Granularity,
10+
PerAxis,
11+
PerBlock,
12+
PerGroup,
13+
PerRow,
14+
PerTensor,
15+
PerToken,
16+
)
817
from torchao.quantization.pt2e._numeric_debugger import ( # noqa: F401
918
CUSTOM_KEY,
1019
FROM_NODE_KEY,
@@ -32,9 +41,8 @@
3241
get_equivalent_types,
3342
update_equivalent_types_dict,
3443
)
44+
from torchao.quantization.utils import get_block_size
3545

36-
from .. import Granularity, PerAxis, PerBlock, PerGroup, PerRow, PerTensor, PerToken
37-
from ..utils import get_block_size
3846
from .fake_quantize import (
3947
FakeQuantize,
4048
FakeQuantizeBase,

0 commit comments

Comments
 (0)