Skip to content

Commit 57aaa83

Browse files
author
semantic-release
committed
chore(release): 0.15.12
1 parent 317b935 commit 57aaa83

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "torchlens"
7-
version = "0.15.11"
7+
version = "0.15.12"
88
description = "A package for extracting activations from PyTorch models"
99
readme = "README.md"
1010
license = "GPL-3.0-only"

torchlens/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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

0 commit comments

Comments
 (0)