You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commit 7c916c1 tries to give identifiers observed in the source to the proxies of variables. However such identifiers sometimes refer to thunder's internal implementation of the language's construct, and this can be confusing.
The commit 7c916c1 tries to give identifiers observed in the source to the proxies of variables. However such identifiers sometimes refer to thunder's internal implementation of the language's construct, and this can be confusing.
Code sample
These renamings happen in
thunder/core/jit_ext._maybe_update_proxy_name
, which is called fromthunder.core.interpreter._load_fast_handler
.frame.code
reveals that the irrelevant variable names come from the lookasides implemented inthunder.core.interpreter
.res
is fromSequenceIter.__next__
,elem
is from_enumerate_lookaside
,b
from_binary_op
.Ideal behavior
When deciding the identifiers we can just ignore those in thunder's interpreter, which will result in
Altenatively, we can perhaps label the identifier
x
by an index whenx
is bound to multiple proxies, ascc @t-vi @nikitaved
The text was updated successfully, but these errors were encountered: