Skip to content

Commit

Permalink
Update uops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonOzog committed Mar 14, 2024
1 parent 55b641d commit 0aed6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinygrad/codegen/uops.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def remove_childless(self, keep:Set[UOp]):
for vu in ru.vin:
has_child.add(vu)
nu: List[UOp] = [x for x in self.uops if x in has_child or x in keep]
self.saved_exprs = {k:v for k,v in self.saved_exprs.items() if k in nu}
self.saved_exprs = {k:v for k,v in self.saved_exprs.items() if v in nu}
if len(nu) == len(self.uops): break
if DEBUG >= 4: print(f"reduced UOp count from {len(self.uops)} to {len(nu)}")
self.uops = nu
Expand Down

0 comments on commit 0aed6d3

Please sign in to comment.