Skip to content

Commit

Permalink
Fixed small bug that happens when parameters are passed into a module…
Browse files Browse the repository at this point in the history
…'s forward pass.
  • Loading branch information
JohnMark Taylor committed Sep 24, 2023
1 parent 3556f9b commit 51ab52a
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 @@ -16,7 +16,7 @@

setup(
name="torchlens",
version="0.1.8",
version="0.1.9",
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/model_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ def decorated_forward(*args, **kwargs):
module_pass_label = (module_address, module.tl_module_pass_num)
module.tl_module_pass_labels.append(module_pass_label)
input_tensors = get_vars_of_type_from_obj(
[args, kwargs], torch.Tensor, search_depth=4
[args, kwargs], torch.Tensor, [torch.nn.Parameter], search_depth=4
)
input_tensor_labels = set()
for t in input_tensors:
Expand Down

0 comments on commit 51ab52a

Please sign in to comment.