mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
shapetracker creates less views
This commit is contained in:
parent
281b0db773
commit
698143aebc
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class ShapeTracker:
|
|||
def strided(self, *arg):
|
||||
view = View([x[0] for x in arg], [x[1] for x in arg])
|
||||
# TODO: this does not always require a new view if non contiguous
|
||||
if self.contiguous:
|
||||
if self.views[-1].contiguous:
|
||||
self.views[-1] = view
|
||||
else:
|
||||
self.views.append(view)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue