int32, and refactor pad/shrink

This commit is contained in:
George Hotz
2023-03-09 12:57:17 -08:00
parent fb5ee9260f
commit dbbaa0bdd7
2 changed files with 14 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ def shapetracker_getitem(st, val):
class CheckingShapeTracker:
def __init__(self, shape):
self.st = ShapeTracker(shape)
self.t = np.arange(prod(shape), dtype=np.int).reshape(shape)
self.t = np.arange(prod(shape), dtype=np.int32).reshape(shape)
@property
def shape(self):