mirror of
https://github.com/wassname/lora-lite.git
synced 2026-06-27 16:15:50 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user