-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[SOT] Dispatcher support ListVariable
extend DictVariable
and DictVariable
#67823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -1072,15 +1074,12 @@ def build_seq_unpack(self, instr: Instruction): | |||
) | |||
) | |||
|
|||
@call_break_graph_decorator(push_n=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是为啥?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想看看还有没有别的地方会 BreakGraphError
挂在这里
if not isinstance(item, (TupleVariable, ListVariable)): | ||
raise BreakGraphError(f"{type(item)} not support unpack") | ||
retval.extend(item.get_wrapped_items()) | ||
assert isinstance( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是怎么保证没有其他 type 进来的?dispatch 没添加还是?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_*
字节码和 dispatch 都会限制
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Category
Execute Infrastructure
PR Types
Performance
Description
支持
list.extend(list, range | list | dict)
相关pr:
BreakGraphError
when extendListVariable
withRangeVariable
#67591