Skip to content

Commit

Permalink
Update src/compressed_tensors/quantization/lifecycle/forward.py
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
  • Loading branch information
horheynm and bfineran authored May 2, 2024
1 parent 0fd1c8d commit e62de87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compressed_tensors/quantization/lifecycle/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def fake_quantize(
# TODO: make validation step for inputs

while scale.ndim < 2:
# pad scale and zero point dims for slicing
scale = scale.unsqueeze(1)
zero_point = zero_point.unsqueeze(1)

Expand Down

0 comments on commit e62de87

Please sign in to comment.