Merged
fix(docs): Fix CodeGen log and swim-lane document #5832
anyangleAdd on Sep 1
fix(docs): Fix CodeGen log and swim-lane document #5832
Merged
anyangleAdd on Sep 1
anyangle
anyangleCollaborators
Sep 1
  1. 删除swim lane相关的文档指导
  2. CodeGen部分日志整改
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for anyangle's contribution.)
anyangleanyangleCollaborators
Sep 1 Created pull request, commit 64736597
atomgit-bot
atomgit-bot
Sep 1 Comments:

变更摘要

该 PR 主要修复 NPU CodeGen 相关代码中的错误日志信息:一方面修正日志文案中的拼写/措辞问题(如函数名拼写、语法用词),另一方面为 ASSERT 断言补充更具体的错误提示(包含实际值与期望范围),以提升报错的可读性和可排查性;此外按标题所述还包含对 swim-lane 文档的修正(该部分未提供补丁细节)。

主要改动

  • 修正 codegen_mte.cpp 日志中的函数名拼写: 将 GenMemL1ToFB 的错误日志文本由错误的 GenMemL1TFB offset 更正为 GenMemL1ToFB offset,避免日志与函数名不一致造成混淆。
  • 改善错误日志措辞: codegen_op_npu.h 中将 mismatch 改为 mismatched,codegen_vector.cpp 中将 occurred unsupported DataType 改为 encountered an unsupported DataType,使 CODEGEN_LOGE 输出更符合语法。
  • 增强 GenGatherFromUBOp 的维度断言信息: codegen_vector_gather_scatter.cpp 中展开 ASSERT 错误消息,输出实际的 dim 值及上限 SHAPE_DIM4,便于定位维度超限问题。
  • 增强 reduce axis 断言信息: codegen_vector_unary.cpp 中为 PrintRowMaxlineStatic、PrintRowMaxlineDynamicUnaligned、PrintRowMaxlineTileTensor 三处 ASSERT 补充期望的合法范围 [0, rawShape[1].size() - 1),明确提示非法 axis 值。
  • 文档修正: 按 PR 标题,包含 swim-lane 文档的相关修复(无补丁内容,具体改动未在任务材料中体现)。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 1 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 1 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 1 Comments:

CLA Signature Pass

quadrate, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
80 messages are collapsed here。 See more
CANN-robot
CANN-robotCollaborators
Sep 7 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
jason_yuan_ye

likedislike
gaoxingwang
gaoxingwangCollaborators
Sep 7 Comments:

/lgtm

likedislike
CANN-robot
CANN-robotCollaborators
Sep 7 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
jason_yuan_ye

likedislike
CANN-robotCANN-robotCollaborators
Sep 7 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 7 Merged pull request