-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[SOT][dynamic shape] Use guard value instead of raise_break_graph_fn to call int/float #66346
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
emmm 好像没看出来为啥 CI 会挂
Sorry to inform you that 0863104's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
Sorry to inform you that f4200a6's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
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.
@@ -58,7 +58,7 @@ class OpcodeExecutorCache(metaclass=Singleton): | |||
MAX_CACHE_SIZE = 20 | |||
cache: dict[types.CodeType, GuardedFunctions] | |||
translate_count: int | |||
code_symbolic_inputs: dict[types.CodeType, dict[str, dict[int, int]]] | |||
code_symbolic_inputs: dict[types.CodeType, dict[str, None | dict[int, int]]] |
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 的?
不过先这样吧
@@ -714,6 +715,18 @@ def __bool__(self) -> bool: | |||
def bool(self): | |||
return ConstantVariable(bool(self), self.graph, DummyTracker([self])) | |||
|
|||
def __int__(self) -> int: |
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.
__int__
和 __float__
后续使用时要注意,不带 Tracker,可能会导致 guard 缺失的问题
PR Category
Execute Infrastructure
PR Types
Performance
Description
Use guard value instead of raise_break_graph_fn to call int/float