mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-24 22:38:16 -05:00
hotfix: remove useless slow assert from ShapeTracker
This commit is contained in:
@@ -54,8 +54,6 @@ def idxs_to_idx(shape:Tuple[int, ...], idxs:Tuple[Node, ...]) -> Node:
|
||||
@dataclass(frozen=True)
|
||||
class ShapeTracker:
|
||||
views: Tuple[View, ...]
|
||||
def __post_init__(self):
|
||||
assert isinstance(self.views, tuple) and all(isinstance(v, View) for v in self.views), "ShapeTracker must be created with a tuple of Views"
|
||||
|
||||
def __add__(self, st:ShapeTracker) -> ShapeTracker:
|
||||
base = ShapeTracker(self.views)
|
||||
|
||||
Reference in New Issue
Block a user