minor fix
Validate Operations / validate-operations (push) Waiting to run

This commit is contained in:
NiccoloN
2026-08-06 21:57:59 +02:00
parent 2e76164aed
commit 1c07faace9
@@ -72,8 +72,9 @@ def clean_artifacts(root: Path | None, models: list[str], arches: list[str]) ->
removed = 0 removed = 0
for name in models: for name in models:
base = model_dir(root, name) base = model_dir(root, name)
for arch in arches: arch_dirs = {base / arch for arch in arches}
for path in (base / arch / "latency", base / arch / "throughput"): arch_dirs.update(path for path in base.glob("arch-*") if path.is_dir() and not path.is_symlink())
for path in arch_dirs:
if path.is_dir() and not path.is_symlink(): if path.is_dir() and not path.is_symlink():
shutil.rmtree(path) shutil.rmtree(path)
removed += 1 removed += 1