Skip to content

Commit 948fe47

Browse files
committed
Cosmetic change
1 parent d05dac5 commit 948fe47

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

thunder/core/utils.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,20 +1033,8 @@ def producers(trace_or_bsyms: TraceCtx | list[BoundSymbolInterface], *, _map_to_
10331033

10341034
vout = variableify(out)
10351035

1036-
# Checks if the proxy was also an input (in which case this is not its producers)
1037-
is_input: bool = False
1038-
for vin in bsym.flat_variableified_proxy_args:
1039-
if vin == vout:
1040-
is_input = True
1041-
break
1042-
1043-
if is_input:
1044-
continue
1045-
1046-
if _map_to_numbers:
1047-
producers[out] = idx
1048-
else:
1049-
producers[out] = bsym
1036+
if vout not in bsym.flat_variableified_proxy_args:
1037+
producers[out] = idx if _map_to_numbers else bsym
10501038

10511039
return producers
10521040

0 commit comments

Comments
 (0)