Skip to content

Commit

Permalink
test for openpilot kernel count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyTheSouthernSnowman committed Sep 30, 2023
1 parent e7a49e8 commit cc20ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinygrad/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def splitted_shape(dim_aft_div): return self.shape[:dim_to_split] + (self.shape[
# *** movement ops ***

def _movement_op(self, st: ShapeTracker, op: MovementOps, arg: Union[Tuple[sint, ...], Tuple[Tuple[sint, sint], ...]]) -> LazyBuffer:
if SHUFFLE_MOVEMENT_OPS and self.optype == BinaryOps and not self.realized and (op in {MovementOps.SHRINK, MovementOps.STRIDE, MovementOps.PERMUTE} or (op == MovementOps.RESHAPE and self.op.op in UnaryOps)) and not self.children:
if SHUFFLE_MOVEMENT_OPS and self.optype == BinaryOps and not self.realized and (op in {MovementOps.SHRINK, MovementOps.STRIDE, MovementOps.PERMUTE} or (op == MovementOps.RESHAPE)) and not self.children: # and self.op.op in UnaryOps
return self.op.replace_with_movement_ops([(op, arg)])
if REMOVE_MOVEMENT_NOPS and not self.realized and st.contiguous:
# MovementOps aren't stacked any more, they each have one parent, find the root
Expand Down

0 comments on commit cc20ac3

Please sign in to comment.