function

bench.init_machine

def init_machine(results_root: Path, machine_type: MachineType | None = None, submitted_by: str = '', notes: str = '', interactive: bool = True, force: bool = False) -> Path

Write benchmarks/results/<slug>/machine.json and return its path.

If a machine.json already exists at the derived slug, refuses to overwrite unless ``force=True``.

Source: torchmatch/bench/_machine.py:189