Skip to content

Commit 67505c5

Browse files
committed
fix
1 parent 6920706 commit 67505c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/catalyst/autograph/ag_primitives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def qnode_call_wrapper():
609609
if hasattr(fn, "__wrapped__") and hasattr(fn, "__module__"):
610610
# Find the decorator function
611611
if decorator := next(
612-
(f for f in _known_wrapper_functions if hasattr(f, "__module__")), None
612+
(f for f in _known_wrapper_functions if f.__module__ == fn.__module__), None
613613
):
614614
original_fn = fn.__wrapped__
615615

0 commit comments

Comments
 (0)