From abd99bb744db6a97d0bbf7bec9c42726a2efcea4 Mon Sep 17 00:00:00 2001 From: chenyu Date: Mon, 21 Oct 2024 09:40:15 -0400 Subject: [PATCH] unwrap2 is not used (#7187) --- tinygrad/helpers.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tinygrad/helpers.py b/tinygrad/helpers.py index c551a2a958..547d214995 100644 --- a/tinygrad/helpers.py +++ b/tinygrad/helpers.py @@ -61,10 +61,6 @@ def partition(itr:Iterable[T], fxn:Callable[[T],bool]) -> Tuple[List[T], List[T] def unwrap(x:Optional[T]) -> T: assert x is not None return x -def unwrap2(x:Tuple[T,Any]) -> T: - ret, err = x - assert err is None, str(err) - return ret def get_child(obj, key): for k in key.split('.'): if k.isnumeric(): obj = obj[int(k)]