Skip to content

Commit

Permalink
fix a bug in checking wrong object's type (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
imShZh authored Nov 24, 2024
1 parent 2acb742 commit 2acfd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depyf/explain/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(self, original_code, module, cache):
def visit(root, ans):
nonlocal tensor_aliasing_guard_seen
for leaf_guard in root.get_leaf_guards():
if isinstance(guard_codes, torch._C._dynamo.guards.NO_TENSOR_ALIASING):
if isinstance(leaf_guard, torch._C._dynamo.guards.NO_TENSOR_ALIASING):
if not tensor_aliasing_guard_seen:
tensor_aliasing_guard_seen = True
else:
Expand Down

0 comments on commit 2acfd19

Please sign in to comment.