Skip to content

Commit

Permalink
fix typo for NF
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiWang199 committed May 20, 2024
1 parent d1b9dbf commit 64adc99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/bitblas/ops/general_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,15 @@ def __initialize_zeros_mode(self, zeros_mode: Optional[str]):
object.__setattr__(self, "zeros_mode", "original")

def __initialize_fast_decoding(self, fast_decoding: Optional[bool]):
if (
if fast_decoding is not None:
object.__setattr__(self, "fast_decoding", fast_decoding)
elif (
"int" not in self.W_dtype
or "nf" not in self.W_dtype
or self.W_dtype == self.A_dtype
):
object.__setattr__(self, "fast_decoding", False)
else:
object.__setattr__(self, "fast_decoding", True)
if fast_decoding is not None:
object.__setattr__(self, "fast_decoding", fast_decoding)

def __post_init__(self):
# set M to default dynamic range if it is None
Expand Down

0 comments on commit 64adc99

Please sign in to comment.