Skip to main content

split_batch

Function split_batch 

Source
pub fn split_batch(
    smiles: &[String],
    n_workers: usize,
    seed: u64,
) -> Vec<WorkerTask>
Expand description

Split a batch of SMILES into N worker tasks.

smiles: all SMILES to process n_workers: number of workers to distribute across seed: RNG seed

Returns a vector of tasks, one per worker.