Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add batch_iter to utils #3245

Merged
merged 1 commit into from
May 24, 2018
Merged

Add batch_iter to utils #3245

merged 1 commit into from
May 24, 2018

Commits on May 19, 2018

  1. Add batch_iter to utils

    There's a frequent idiom I noticed where an iterable is split up into a
    number of chunks/batches. Unfortunately that method does not work with
    iterators like dict.keys() in python3. This implementation works with
    iterators.
    
    Signed-off-by: Adrian Tschira <[email protected]>
    NotAFile committed May 19, 2018
    Configuration menu
    Copy the full SHA
    45b55e2 View commit details
    Browse the repository at this point in the history