xnn.common.benchmark.runner.merge_parts#

xnn.common.benchmark.runner.merge_parts(cfg)[source]#

Assemble the final table from the part files of a split benchmark.

Every parts/<filename>.*.json under the output directory is read, the rows are put in the config’s model order, and the table is printed and written in every configured format exactly as a single full run would. A model without a part (a failed task) is reported on stderr and left out; a part whose label is not in the config (stale, from an earlier config) is ignored with a note. Rerun the merge after fixing the tasks.

Parameters:

cfg (BenchmarkConfig) – The full benchmark configuration the parts were produced with.

Returns:

The merged rows, in config order.

Return type:

list of dict

Raises:

FileNotFoundError – If there are no part files to merge.