Skip to content

Commit

Permalink
lint: Python sources
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Jan 19, 2024
1 parent 91c0094 commit 0adfa3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/blas/gemm/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

NP_DTYPE = {8: np.float64, 4: np.float32, 2: np.float16, 1: np.uint8}


def fp8byte_to_float(byte: np.uint8):
"""Converts a number from a byte stored as a uint8 to a float."""
sign = (byte & 0x80) >> 7 # Extract sign (1 bit)
Expand Down

0 comments on commit 0adfa3c

Please sign in to comment.