Collection
- magna.util.collection.get_batches(iterable, n=1)
Generate batches of size n from the iterable.
- Parameters
batches. (The iterable to split into) –
batch. (The size of each) –
- Return type
Iterator
[Sized
]- Returns
An iterator with each batch.