mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
bugfix: too many values to unpack
This commit is contained in:
parent
e3c8277255
commit
6defd24000
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ def batched_iterator(dataset, tensors_in_item=1, batch_size=64):
|
||||||
if tensors_in_item == 1:
|
if tensors_in_item == 1:
|
||||||
item = [ item ]
|
item = [ item ]
|
||||||
|
|
||||||
for i_tensor, tensor in item:
|
|
||||||
|
for i_tensor, tensor in enumerate(item):
|
||||||
acc[i_tensor].append(tensor)
|
acc[i_tensor].append(tensor)
|
||||||
|
|
||||||
if i_item >= batch_size:
|
if i_item >= batch_size:
|
||||||
|
|
Loading…
Reference in a new issue