From 34fe105386a93bebf18e43b19d379cd948ebf667 Mon Sep 17 00:00:00 2001 From: kim yongjin <76604798+YongjinKim-Dev@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:38:33 +0900 Subject: [PATCH] remove unused LazySeq (#14020) --- tinygrad/helpers.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tinygrad/helpers.py b/tinygrad/helpers.py index b6acf778f4..a1b6c33237 100644 --- a/tinygrad/helpers.py +++ b/tinygrad/helpers.py @@ -128,10 +128,6 @@ def unwrap_class_type(cls_t): return cls_t.func if isinstance(cls_t, functools.p def pluralize(st:str, cnt:int): return f"{cnt} {st}"+('' if cnt == 1 else 's') -class LazySeq(Generic[T]): # NOTE: Mapping requires __iter__ and __len__, Sequence requires supporting __len__ and slicing in __getitem__ - def __init__(self, gen:Callable[[int], T]): self.gen = gen - def __getitem__(self, idx:int) -> T: return self.gen(idx) - # for length N coefficients `p`, returns p[0] * x**(N-1) + p[1] * x**(N-2) + ... + p[-2] * x + p[-1] def polyN(x:T, p:list[float]) -> T: return functools.reduce(lambda acc,c: acc*x+c, p, 0.0) # type: ignore