bugfix: too many values to unpack

This commit is contained in:
Starbeamrainbowlabs 2022-09-15 19:56:17 +01:00
parent e3c8277255
commit 6defd24000
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -10,7 +10,8 @@ def batched_iterator(dataset, tensors_in_item=1, batch_size=64):
if tensors_in_item == 1:
item = [ item ]
for i_tensor, tensor in item:
for i_tensor, tensor in enumerate(item):
acc[i_tensor].append(tensor)
if i_item >= batch_size: