| .ggmlr_batch_shards | R Documentation |
Helper: partition seq_len(M) into n contiguous blocks, as even as
possible (earlier shards get the +1 when M is not divisible by n).
.ggmlr_batch_shards(M, n)
M |
Number of rows (batch size). |
n |
Number of shards. |
A list of integer vectors of row indices (1-based), length n;
empty vectors are dropped.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.