Skip to content

Conversation

@Honglei-Qiu
Copy link
Contributor

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 修改了生成文件逻辑,保证不会出现区间重复以及进行字典序排序

@paddle-bot
Copy link

paddle-bot bot commented Jan 19, 2026

Thanks for your contribution!

@Honglei-Qiu
Copy link
Contributor Author

Honglei-Qiu commented Jan 19, 2026

截屏2026-01-19 17 26 14

我们的目的是要构造这种的格式,但是之前的版本会重复路径,所以要修改逻辑,取不同路径,然后加区间,这样才能符合格式

@Honglei-Qiu
Copy link
Contributor Author

截屏2026-01-20 11 34 00 原本graph_net/sample_pass/group_ranges_from_subgraph_sources.py操作的子图

@Honglei-Qiu
Copy link
Contributor Author

截屏2026-01-20 11 36 48 然后生成了这种格式,很明显是不对的

@Honglei-Qiu
Copy link
Contributor Author

修改以后生成的json
截屏2026-01-20 11 45 36

for symbol, dim in symbol2example_value.items()
for sym_name in [symbol.name]
"""
📍 关键修改1:使用索引而非符号字符串
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文注释

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改完毕!

Comment on lines 141 to 143
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
Copy link
Collaborator

@lixinqi lixinqi Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些日志类的语气特别不合适。这一看就是给此时此刻的我看的,其他人看了一脸懵。
你和大模型说:不要使用日志语气描述修改内容,要面向长期读者写当前代码在整体中的作用。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

重新生成并修改了部分描述

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants