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
Merged fromquadrate/pypto_ayldoc_fixintocann/pyptomaster
anyangleCollaborators
Sep 1
Sep 1
- 删除swim lane相关的文档指导
- CodeGen部分日志整改


Pull Request has been successfully merged by CANN-robot.
(Thank you for anyangle's contribution.)atomgit-bot
Sep 1 Comments:
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 文档的相关修复(无补丁内容,具体改动未在任务材料中体现)。


Incorrect?
atomgit-bot
Sep 1 Comments:
Sep 1 Comments:
Sep 1 Added label: cann-cla/yes
CANN-robot
Sep 1 Comments:
Sep 1 Comments:
80 messages are collapsed here。 See more
CANN-robot
Sep 7 Comments:
Sep 7 Comments:
The following users do not have permission to comment /lgtm or /approve on any module in this PR:
jason_yuan_ye


gaoxingwang
Sep 7 Comments:
Sep 7 Comments:
/lgtm


CANN-robot
Sep 7 Comments:
Sep 7 Comments:
The following users do not have permission to comment /lgtm or /approve on any module in this PR:
jason_yuan_ye


Sep 7 Added label: lgtm
Sep 7 Merged pull request