Skip to content

Commit 8c18d4d

Browse files
committed
Remove __all__ exports from module
Removed __all__ exports from cutlass_int4_packed_layout.py
1 parent 1d51ebf commit 8c18d4d

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

torchao/dtypes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
)
1515
from .nf4tensor import NF4Tensor, to_nf4
1616
from .uintx import (
17-
CutlassInt4PackedLayout,
1817
Int4CPULayout,
1918
Int4XPULayout,
2019
Int8DynamicActInt4WeightCPULayout,
@@ -29,6 +28,7 @@
2928
to_marlinqqq_quantized_intx,
3029
)
3130
from .uintx.block_sparse_layout import BlockSparseLayout
31+
from .uintx.cutlass_int4_packed_layout import CutlassInt4PackedLayout
3232
from .utils import (
3333
Layout,
3434
PlainLayout,

torchao/dtypes/uintx/cutlass_int4_packed_layout.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,18 @@
88
import warnings
99

1010
warnings.warn(
11-
"Importing from torchao.dtypes.uintx.cutlass_int4_packed_layout is deprecated. "
11+
"Importing from torchao.dtypes is deprecated. "
1212
"Please use 'from torchao.prototype.dtypes import CutlassInt4PackedLayout' instead. "
1313
"This import path will be removed in torchao v0.16.0.",
1414
DeprecationWarning,
1515
stacklevel=2,
1616
)
1717

1818
from torchao.prototype.dtypes.uintx.cutlass_int4_packed_layout import ( # noqa: F401
19-
CutlassInt4PackedLayout,
20-
Int4PackedTensorImpl,
21-
_linear_int4_act_int4_weight_cutlass_check,
22-
_linear_int4_act_int4_weight_cutlass_impl,
23-
_linear_int8_act_int4_weight_cutlass_check,
24-
_linear_int8_act_int4_weight_cutlass_impl,
19+
CutlassInt4PackedLayout, # noqa: F401
20+
Int4PackedTensorImpl, # noqa: F401
21+
_linear_int4_act_int4_weight_cutlass_check, # noqa: F401
22+
_linear_int4_act_int4_weight_cutlass_impl, # noqa: F401
23+
_linear_int8_act_int4_weight_cutlass_check, # noqa: F401
24+
_linear_int8_act_int4_weight_cutlass_impl, # noqa: F401
2525
)
26-
27-
__all__ = [
28-
"CutlassInt4PackedLayout",
29-
"Int4PackedTensorImpl",
30-
"_linear_int4_act_int4_weight_cutlass_check",
31-
"_linear_int4_act_int4_weight_cutlass_impl",
32-
"_linear_int8_act_int4_weight_cutlass_check",
33-
"_linear_int8_act_int4_weight_cutlass_impl",
34-
]

0 commit comments

Comments
 (0)