flankton's picture
download
raw
312 Bytes
# Originally from OpenCLIP (https://github.com/mlfoundations/open_clip)
import collections.abc
from itertools import repeat
def _ntuple(n):
def parse(x):
if isinstance(x, collections.abc.Iterable):
return x
return tuple(repeat(x, n))
return parse
to_2tuple = _ntuple(2)

Xet Storage Details

Size:
312 Bytes
·
Xet hash:
d4c7df1d116310fe05fdde2c8a94bbfc9b70b5f68109ef1f637e7df3b3f91acd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.