Skip to content

Commit

Permalink
needs uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Nov 24, 2023
1 parent bb76a17 commit 68c512a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teenygrad/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def is_float(x: DType) -> bool: return x in (dtypes.float32, dtypes.float64)
float64: Final[DType] = DType(11, 8, "double", np.float64)
int32: Final[DType] = DType(5, 4, "int", np.int32)
int64: Final[DType] = DType(7, 8, "long", np.int64)
uint8: Final[DType] = DType(2, 1, "unsigned char", np.uint8)
bool: Final[DType] = DType(0, 1, "bool", np.bool_)
DTYPES_DICT = {k: v for k, v in dtypes.__dict__.items() if not k.startswith('__') and not callable(v) and not v.__class__ == staticmethod}

Expand Down

0 comments on commit 68c512a

Please sign in to comment.