xnn.common.benchmark.runner.select_entries#
- xnn.common.benchmark.runner.select_entries(cfg, models=None, shard=None)[source]#
Pick the model entries one run of a split benchmark scores.
- Parameters:
cfg (BenchmarkConfig) – The full benchmark configuration.
models (list of str, str or None, optional) – Labels (or zero-based positions) of the entries to keep, as a list or one comma-separated string.
Nonekeeps all.shard (str or None, optional) –
"I/N"keeps everyN-th entry starting atI(zero-based), soNruns withI = 0 .. N-1cover the list;"slurm"readsIandNfrom the Slurm job-array variables (SLURM_ARRAY_TASK_IDrelative toSLURM_ARRAY_TASK_MIN, andSLURM_ARRAY_TASK_COUNT). Applied aftermodels.
- Returns:
The selected entries, in config order.
- Return type:
list of ModelEntry
- Raises:
ValueError – For an unknown label, a malformed
shard, or"slurm"outside a job array.