remove dead code: _road_matrix, callable(m) clause, silent git fallback

- delete _road_matrix in variants/road.py (zero callers)
- drop redundant callable(m) clause in is_linear_like (every nn.Module is callable)
- remove try/except in current_git_commit so missing git crashes loudly
  instead of writing "unknown" into the results TSV

Co-Authored-By: Claudypoo <noreply@anthropic.com>
This commit is contained in:
wassname
2026-05-19 19:11:32 +08:00
parent 19888fbb82
commit 56937e1b18
3 changed files with 1 additions and 21 deletions
+1 -4
View File
@@ -457,10 +457,7 @@ def print_final_report(row: dict[str, Any], result_path: Path, mode: str) -> Non
def current_git_commit() -> str:
try:
return subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
except (subprocess.CalledProcessError, FileNotFoundError):
return "unknown"
return subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
def append_results_row(