Skip to content

Commit f6e0dfb

Browse files
author
Bias92
committed
style: format after float base change
Signed-off-by: Bias92 <gongnobi@gmail.com>
1 parent 1534861 commit f6e0dfb

File tree

1 file changed

+1
-1
lines changed
  • src/compressed_tensors/quantization/utils

1 file changed

+1
-1
lines changed

src/compressed_tensors/quantization/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def calculate_range(
205205
:return: tuple endpoints for the given quantization range
206206
"""
207207
if quantization_args.type == QuantizationType.INT:
208-
bit_range = 2.0 ** quantization_args.num_bits
208+
bit_range = 2.0**quantization_args.num_bits
209209
q_max = torch.tensor(bit_range / 2 - 1, device=device)
210210
q_min = torch.tensor(-bit_range / 2, device=device)
211211
elif quantization_args.type == QuantizationType.FLOAT:

0 commit comments

Comments
 (0)