function

bench.short_name

def short_name(brand: str) -> str

Normalize a noisy CPU/GPU brand string to a filesystem-safe short slug.

Drops marketing tokens ("(R)", "(TM)", "Core", "Processor", "Laptop GPU", "GeForce"...) and runs of non-alphanumerics. Lowercased. Examples: '12th Gen Intel(R) Core(TM) i7-12700H' -> 'intel-i7-12700h' 'AMD Ryzen 9 9950X 16-Core Processor' -> 'amd-ryzen-9-9950x' 'NVIDIA RTX A1000 Laptop GPU' -> 'nvidia-rtx-a1000'

Source: torchmatch/bench/_machine.py:33