We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6920706 commit 67505c5Copy full SHA for 67505c5
frontend/catalyst/autograph/ag_primitives.py
@@ -609,7 +609,7 @@ def qnode_call_wrapper():
609
if hasattr(fn, "__wrapped__") and hasattr(fn, "__module__"):
610
# Find the decorator function
611
if decorator := next(
612
- (f for f in _known_wrapper_functions if hasattr(f, "__module__")), None
+ (f for f in _known_wrapper_functions if f.__module__ == fn.__module__), None
613
):
614
original_fn = fn.__wrapped__
615
0 commit comments