Skip to content

Commit 3ad3ac4

Browse files
authored
Change dtypes.int to dtypes.ints (tinygrad#9517)
1 parent b9fab9b commit 3ad3ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinygrad/codegen/symbolic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def div_and_mod_folding(x: UOp, y: UOp, which: Literal[Ops.MOD, Ops.IDIV], split
172172

173173
symbolic = symbolic_simple+PatternMatcher([
174174
# ** COMMUTATIVE flipping (only for ints) **
175-
(UPat(GroupOp.Commutative, dtype=dtypes.int, name='x'), lambda x: x.replace(src=x.src[::-1]) if x.src[1].tuplize < x.src[0].tuplize else None),
175+
(UPat(GroupOp.Commutative, dtype=dtypes.ints, name='x'), lambda x: x.replace(src=x.src[::-1]) if x.src[1].tuplize < x.src[0].tuplize else None),
176176
# ** boolean algebra **
177177
(UPat.var("x") | (UPat.var("x") & UPat.var()), lambda x: x), # x|(x&y) -> x
178178
# ** combine terms **

0 commit comments

Comments
 (0)