-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] Simplify the logic for setting VariableBase's debug_name
#71251
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
74a353d
to
1cd0d2f
Compare
1cd0d2f
to
7bef65a
Compare
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 Overview
This PR refactors the logic for setting VariableBase's debug_name to automatically infer a value from the tracker instead of accepting an explicit debug_name parameter. Key changes include:
- Removal of the debug_name parameter and its explicit assignment in the from_value functions.
- Introduction of infer_debug_name_from_tracker to generate debug names based on tracker type.
- Removal of explicit debug_name updates within OpcodeExecutor and adjustments to related tests.
Reviewed Changes
File | Description |
---|---|
python/paddle/jit/sot/opcode_translator/executor/variables/base.py | Refactored debug_name initialization and removed the debug_name parameter. |
python/paddle/jit/sot/opcode_translator/executor/function_graph.py | Updated from_value call to no longer pass debug_name. |
python/paddle/jit/sot/opcode_translator/executor/variables/basic.py | Removed redundant debug_name property in favor of the new mechanism. |
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py | Removed explicit assignments of debug_name to rely on the inferred value. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
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.
debug_name
PR Category
User Experience
PR Types
Improvements
Description
如果一个debug_name没有有价值的内容,那我们就舍弃它。
PCard-66972