Fix 0size config lines - #713
Merged
Merged
Conversation
feixi139
force-pushed
the
fix-0size-config-lines
branch
from
August 19, 2026 12:07
0e61592 to
5b69e86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
本 PR 优化 to_0_size_config.py 的配置解析和 0-size 用例生成逻辑,主要包括:
支持拆分同一行中连续粘连的多个 paddle.* API 调用,兼容嵌套括号及字符串内容,避免配置解析失败。
针对 paddle.concat、paddle.add_n 等算子的超长同质 Tensor 容器,按照 kernel 输入数量的关键分支进行边界取样,减
少重复的逐位置枚举。
保留容器首尾位置和关键 0-size 场景,尽量维持原有测试覆盖。
对暂未注册折叠规则的算子继续使用原有枚举逻辑,并输出告警,避免未经验证地减少测试覆盖。
整体上可以提升配置预处理的兼容性,并降低超长配置生成时的用例数量和处理开销。