Skip to content

Commit 73ecf0b

Browse files
Remove unused return wrapper in annotate_function that creates a self reference cycle loop in python.
PiperOrigin-RevId: 745099538
1 parent 5f33280 commit 73ecf0b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

jax/_src/profiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ def annotate_function(func: Callable, name: str | None = None,
332332
def wrapper(*args, **kwargs):
333333
with TraceAnnotation(name, **decorator_kwargs):
334334
return func(*args, **kwargs)
335-
return wrapper
336335
return wrapper
337336

338337

0 commit comments

Comments
 (0)