File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
33
4+ ## v0.15.12 (2026-03-06)
5+
6+ ### Performance Improvements
7+
8+ - ** capture** : O(1) tensor/param extraction via per-function ArgSpec lookup table
9+ ([ ` b1d6c56 ` ] ( https://github.com/johnmarktaylor91/torchlens/commit/b1d6c56f4f1c5cf1176232e8fc33e229f8555baf ) )
10+
11+ Replace expensive 3-level BFS crawl (~ 1.44s, 39% self-time, ~ 1.9M getattr calls) with O(1)
12+ position-based lookups using a static ArgSpec table of 350+ entries. Three-tier strategy: static
13+ table for known torch functions, dynamic cache for user-defined modules, BFS fallback (fires at
14+ most once per unique class).
15+
16+ Also hoists warnings.catch_warnings() from per-attribute (~ 77K entries) to per-call level, and adds
17+ usage stats collection + coverage test infrastructure.
18+
19+ Benchmark: Swin-T log_forward_pass 5.91s → 4.41s (-25%).
20+
21+ Co-Authored-By: Claude Opus 4.6 < noreply@anthropic.com >
22+
23+
424## v0.15.11 (2026-03-06)
525
626### Bug Fixes
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " torchlens"
7- version = " 0.15.11 "
7+ version = " 0.15.12 "
88description = " A package for extracting activations from PyTorch models"
99readme = " README.md"
1010license = " GPL-3.0-only"
Original file line number Diff line number Diff line change 99 first imported. See the bottom of this file for details.
1010"""
1111
12- __version__ = "0.15.11 "
12+ __version__ = "0.15.12 "
1313
1414# ---- Public API: user-facing entry points --------------------------------
1515
You can’t perform that action at this time.
0 commit comments