Closed
[Documentation|文档反馈]: FusedAddRmsNorm README 未列出 shape 约束 #8455
KaranocaVeAdd on 12 days agoClosed at 12 days ago
12 days ago Associated pull request
12 days ago Modify description of issue
12 days ago Close issue
12 days ago changed custom state from 待办的 to 已完成
12 days ago Assign KaranocaVe as responsible person
12 days ago Added label: resolved
[Documentation|文档反馈]: FusedAddRmsNorm README 未列出 shape 约束
问题
experimental/norm/fused_add_rms_norm/README.md 的“约束说明”写为“无”,但该页参数表已要求 gamma shape 与 x1 的末尾维度一致。相同版本的 ACLNN 参数文档还规定 x1、x2 shape 相同,gamma rank 不超过 x1,且 gamma shape 匹配 x1 的末尾维度。
Host tiling fused_add_rms_norm_tiling.cpp 明确检查 x1 rank 为 1~8、gamma rank 为 1~8 且不大于 x1、x1/x2 形状相同、x1 非空以及 gamma 尾维匹配;输出 y/x 与 x1 同 shape,rstd rank 与 x1 相同,并按 gamma 对应的尾维置 1。README 当前“无”会使图模式用户误以为这些形状均可输入,实际在 tiling 阶段失败。
这是 README 与公开 API/Host shape 合同不一致的文档缺陷。修复只把已经由 API 文档和 Host 检查确认的 shape 限制补入 README,不改算子行为。
关联 PR: https://gitcode.com/cann/ops-nn/merge_requests/14021