File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
33
4+ ## v1.0.2 (2026-04-05)
5+
6+ ### Bug Fixes
7+
8+ - ** decoration** : Python 3.14 compat -- two-pass decoration + TypeError catch
9+ ([ #138 ] ( https://github.com/johnmarktaylor91/torchlens/pull/138 ) ,
10+ [ ` e6f0f9a ` ] ( https://github.com/johnmarktaylor91/torchlens/commit/e6f0f9a33ba31504d6e402c117aac4a87ef46cb5 ) )
11+
12+ Python 3.14 (PEP 649) evaluates annotations lazily. During decorate_all_once(), wrapping Tensor.bool
13+ before inspecting Tensor.dim_order caused inspect.signature() to resolve ` bool ` in `bool |
14+ list[ torch.memory_format] ` to the wrapper function instead of the builtin type, raising TypeError
15+ on first call only.
16+
17+ Three fixes: - Catch TypeError alongside ValueError in get_func_argnames (safety net) - Split
18+ decorate_all_once() into two passes: collect argnames from pristine namespace first, then decorate
19+ (eliminates root cause) - Replace _ orig_to_decorated idempotency guard with _ is_decorated flag so
20+ partial decoration failure allows retry instead of locking in incomplete state
21+
22+ 6 new tests, gotchas.md updated.
23+
24+
425## v1.0.1 (2026-03-23)
526
627### 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 = " 1.0.1 "
7+ version = " 1.0.2 "
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 77``wrap_torch()``. The ``wrapped()`` context manager handles the full lifecycle.
88"""
99
10- __version__ = "1.0.1 "
10+ __version__ = "1.0.2 "
1111
1212# ---- Public API: user-facing entry points --------------------------------
1313
You can’t perform that action at this time.
0 commit comments