Skip to content

Commit

Permalink
Fixed output labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMark Taylor committed Sep 8, 2023
1 parent 317a70b commit f4517e8
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.5",
version="0.1.6",
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 @@ -326,7 +326,7 @@ def extend_search_stack_from_item(
item: The item
next_stack: Stack to add to
"""
if issubclass(type(item), (list, tuple, set)):
if type(item) in [list, tuple, set]:
if address == "":
next_stack.extend(
[(x, f"{i}", address_full + [("ind", i)]) for i, x in enumerate(item)]
Expand Down

0 comments on commit f4517e8

Please sign in to comment.