Skip to content

Commit

Permalink
#535 fixed bug with constant batch size = 2 in BatchIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jan 13, 2024
1 parent 5af655f commit bf0f3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arekit/common/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __iter__(self):
def __next__(self):
if self.__index < len(self.__lst):
batch = self.__lst[self.__index:self.__index + self.__batch_size]
self.__index += 2
self.__index += self.__batch_size
return batch
else:
raise StopIteration

0 comments on commit bf0f3fc

Please sign in to comment.