Skip to content

Commit

Permalink
remove contiguous in test_subbuffer_used [pr] (tinygrad#9046)
Browse files Browse the repository at this point in the history
test works without contiguous
  • Loading branch information
chenyuxyz authored Feb 12, 2025
1 parent b3eab03 commit c15486c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_subbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def test_subbuffer_len(self):

def test_subbuffer_used(self):
t = Tensor.arange(0, 10, dtype=dtypes.uint8).realize()
# TODO: why does it needs contiguous
vt = t[2:4].contiguous().realize()
vt = t[2:4].realize()
out = (vt + 100).tolist()
assert out == [102, 103]

Expand Down

0 comments on commit c15486c

Please sign in to comment.