This commit is contained in:
mrq 2023-10-11 20:49:54 -05:00
parent 8740cdefc6
commit 3af19d79fd

View File

@ -191,7 +191,10 @@ class Base(nn.Module):
cat = torch.cat
else:
cat = partial(_join, sep=sep)
return [*map(cat, zip([x for x in l if x is not None]))]
l = [ x for x in l if x is not None ]
return [*map(cat, zip(*l))]
def __init__(
self,