Skip to content

Commit

Permalink
:P
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosagent committed May 7, 2024
1 parent f329d75 commit 7875b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinygrad/shape/shapetracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def contiguous(self) -> bool: return len(self.views) == 1 and self.views[0].cont

@property
def bijective(self) -> bool:
if len(self.views) != 1 or (v := self.views[0]).mask is not None: return False
if len(self.views) != 1 or (v := self.views[0]).mask is not None or self.views[0].offset: return False
s_strides, s_shape = zip(*sorted(zip(v.strides, v.shape), reverse=True))
return s_strides == strides_for_shape(s_shape)

Expand Down

0 comments on commit 7875b26

Please sign in to comment.