Skip to content

Commit

Permalink
Filter out nonproxies in find_producer_symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanYashchuk committed May 3, 2024
1 parent ba7f4fd commit 14cd04e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thunder/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,7 @@ def find_producer_symbols(trace: TraceCtx, proxies: Sequence[Proxy], stop_proxie
(__b = ltorch.sub(x, y)
# __b = prims.sub(x, y),)
"""
stop_proxies = filter(lambda x: isinstance(x, Proxy), stop_proxies)
trace_producers = producers(trace)
result = set()
queue = list(proxies)
Expand Down

0 comments on commit 14cd04e

Please sign in to comment.