Skip to content

Commit 80ce699

Browse files
committed
black
1 parent 2c88809 commit 80ce699

File tree

1 file changed

+2
-1
lines changed
  • sparsebit/quantization/observers

1 file changed

+2
-1
lines changed

sparsebit/quantization/observers/aciq.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def calc_gaus_minmax(self):
105105
(2 * math.log(num_elements)) ** 0.5
106106
)
107107
if (
108-
self.qdesc.scheme in [torch.per_channel_affine, torch.per_tensor_affine, "per-group-affine"]
108+
self.qdesc.scheme
109+
in [torch.per_channel_affine, torch.per_tensor_affine, "per-group-affine"]
109110
and is_half_range
110111
):
111112
max_val = self.alpha_gaus_positive[self.qdesc.bit] * std

0 commit comments

Comments
 (0)