-
Notifications
You must be signed in to change notification settings - Fork 45
fix graph_net/sample_pass/group_ranges_from_subgraph_sources.py and graph_net/dimension_generalizer.py #589
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
base: develop
Are you sure you want to change the base?
Conversation
|
Thanks for your contribution! |
graph_net/dimension_generalizer.py
Outdated
| for symbol, dim in symbol2example_value.items() | ||
| for sym_name in [symbol.name] | ||
| """ | ||
| 📍 关键修改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.
修改完毕!
graph_net/dimension_generalizer.py
Outdated
| Key modification 1: Use indices instead of symbol strings | ||
| Key modification 2: Find corresponding index through dimension value matching | ||
| Key modification 3: Path structure changed from model/name to index/model |
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.
重新生成并修改了部分描述




PR Category
other
Description
graph_net/dimension_generalizer.py主要修改_get_to_model_path函数使其生成0-8总共9个空间
graph_net/sample_pass/group_ranges_from_subgraph_sources.py 修改了生成文件逻辑,保证不会出现区间重复以及进行字典序排序