Skip to content

Commit

Permalink
Added compatibility for complex numbers (enables quantum neural netwo…
Browse files Browse the repository at this point in the history
…rks), and allows functions called as tensor properties to be tracked (real, imag, T, mT, H).
  • Loading branch information
JohnMark Taylor committed Feb 12, 2025
1 parent 42e93e1 commit 8ec9c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name="torchlens",
version="0.1.30",
version="0.1.31",
description="A package for extracting activations from PyTorch models",
long_description="A package for extracting activations from PyTorch models. Contains functionality for "
"extracting model activations, visualizing a model's computational graph, and "
Expand Down
2 changes: 1 addition & 1 deletion torchlens/helper_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def extend_search_stack_from_item(

for attr_name in dir(item):
if ((attr_name.startswith("__")) or
(attr_name in ['T', 'mT', 'real', 'imag']) or
(attr_name in ['T', 'mT', 'real', 'imag', 'H']) or
('grad' in attr_name)):
continue
try:
Expand Down

0 comments on commit 8ec9c89

Please sign in to comment.