Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
metascroy committed Feb 5, 2025
1 parent 4830268 commit 55be374
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions torchao/experimental/quant_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from torchao.utils import (
TORCH_VERSION_AT_LEAST_2_6,
)
from torchao.experimental.q_dq_layout import QDQLayout

logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)
Expand Down Expand Up @@ -658,13 +657,7 @@ def apply(weight, bias: Optional[torch.Tensor] = None):

# Note that PackedLinearInt8DynamicActivationIntxWeightLayout has dynamic activation quantization fused
# with the kernel and it should not be applied separately
if not any(
isinstance(layout, layout_class)
for layout_class in [
# QDQLayout,
PackedLinearInt8DynamicActivationIntxWeightLayout,
]
):
if not isinstance(layout, PackedLinearInt8DynamicActivationIntxWeightLayout):
activation_quant_func = lambda x: to_affine_quantized_intx(
x,
mapping_type=act_mapping_type,
Expand Down

0 comments on commit 55be374

Please sign in to comment.