Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: johnmarktaylor91/torchlens
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.1
Choose a base ref
...
head repository: johnmarktaylor91/torchlens
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.2
Choose a head ref
  • 3 commits
  • 6 files changed
  • 2 contributors

Commits on Apr 5, 2026

  1. fix(decoration): Python 3.14 compat -- two-pass decoration + TypeErro…

    …r catch (#138)
    
    Python 3.14 (PEP 649) evaluates annotations lazily. During
    decorate_all_once(), wrapping Tensor.bool before inspecting
    Tensor.dim_order caused inspect.signature() to resolve `bool` in
    `bool | list[torch.memory_format]` to the wrapper function instead of
    the builtin type, raising TypeError on first call only.
    
    Three fixes:
    - Catch TypeError alongside ValueError in get_func_argnames (safety net)
    - Split decorate_all_once() into two passes: collect argnames from
      pristine namespace first, then decorate (eliminates root cause)
    - Replace _orig_to_decorated idempotency guard with _is_decorated flag
      so partial decoration failure allows retry instead of locking in
      incomplete state
    
    6 new tests, gotchas.md updated.
    johnmarktaylor91 committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    e6f0f9a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #139 from johnmarktaylor91/fix/python-3.14-decorat…

    …ion-compat
    
    fix(decoration): Python 3.14 compat -- two-pass decoration + TypeError catch
    johnmarktaylor91 authored Apr 5, 2026
    Configuration menu
    Copy the full SHA
    cc23905 View commit details
    Browse the repository at this point in the history
  3. chore(release): 1.0.2

    semantic-release committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    3ad9577 View commit details
    Browse the repository at this point in the history
Loading