batch

imagepypelines.batch(data, batch_size)[source]

chunks a list into multiple batch_size chunks, the last batch will be truncated if the data length isn’t a multiple of batch_size