mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
unwrap2 is not used (#7187)
This commit is contained in:
parent
37b829ef0d
commit
abd99bb744
1 changed files with 0 additions and 4 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue