From f5809f3a10ce83cffde5e53d41ba34041e6da6b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Jul 2022 06:56:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- python/taichi/types/quantized_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/taichi/types/quantized_types.py b/python/taichi/types/quantized_types.py index a2fc2c1231f0f..06a4f34f5f9e7 100644 --- a/python/taichi/types/quantized_types.py +++ b/python/taichi/types/quantized_types.py @@ -48,9 +48,9 @@ def fixed(bits, signed=True, max_value=1.0, compute=None, scale=None): underlying_type = int(bits=bits, signed=signed, compute=i32) if scale is None: if signed: - scale = max_value / 2 ** (bits - 1) + scale = max_value / 2**(bits - 1) else: - scale = max_value / 2 ** bits + scale = max_value / 2**bits return _type_factory.get_quant_fixed_type(underlying_type, compute, scale)