function

bench.build_slug

def build_slug(machine_type: MachineType, cpu_short: str, gpu_short: str | None) -> str

Compose the flat slug used as the per-machine directory name.

Source: torchmatch/bench/_machine.py:140