Skip to content

Commit

Permalink
Fix bug & apply review recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitintel committed Jan 15, 2025
1 parent da2e9e0 commit bbc8dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import logging
import os
import unittest
from functools import partial

import torch
import torch.nn as nn
Expand Down Expand Up @@ -1004,8 +1005,6 @@ def _test_lin_weight_subclass_api_impl(
def test_int8_dynamic_quant_subclass_api(
self, device, dtype, act_mapping, weight_zero_point_domain
):
from functools import partial

if (
not TORCH_VERSION_AT_LEAST_2_5
and dtype in (torch.float16, torch.bfloat16)
Expand Down
2 changes: 1 addition & 1 deletion torchao/quantization/quant_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def _quantize_affine_no_dtype_cast(
zero_point: Optional[torch.Tensor],
quant_min: Union[int, float],
quant_max: Union[int, float],
quant_dtype: Optional[torch.dtype],
quant_dtype: torch.dtype,
zero_point_domain: Optional[str] = ZeroPointDomain.INT.name,
) -> torch.Tensor:
"""
Expand Down

0 comments on commit bbc8dcd

Please sign in to comment.