mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
hotfix: remove useless slow assert from ShapeTracker
This commit is contained in:
parent
4b687af98f
commit
bf6281f316
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue