shapetracker creates less views
MODIFY
tinygrad/shapetracker.py
tinygrad/shapetracker.py
@@ -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)

shapetracker creates less views