Merged
fix(all): Fix spelling errors in source comments and diagnostic messages #5392
fix(all): Fix spelling errors in source comments and diagnostic messages #5392
Merged
wangmingjunAdd on Aug 11
wangmingjun
wangmingjunCollaborators
Aug 11

fix(all): Fix spelling errors in source comments and diagnostic messages

修复源码注释、错误信息和调试日志中多处英文拼写错误,避免阅读诊断输出时产生误解。

Changes:

  • device_error_code.h:defalut -> default
  • codegen_vector.cpp:occured/unsupport -> occurred/unsupported
  • operation_impl.cpp:interger -> integer
  • device_task_context.cpp:Inital -> Initial
  • directed_graph_util.h:lenght -> length
  • tune_sync_for_vf.cpp:falied -> failed(4 处)
  • graph_utils.h / expand_function.cpp:seperate -> separate
  • cube_process.cpp:invlid -> invalid
  • pil2ir.py:funtion -> function
  • test_dynamic_mm.cpp:intput -> input(4 处)

Related Issues: #2908

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for wangmingjun's contribution.)
wangmingjunwangmingjunCollaborators
Aug 11 Created pull request, commit 4e6d2e1d
wangmingjunwangmingjunCollaborators
Aug 11 Associated issue: [Documentation|文档反馈]: 源码注释和诊断文本中的英文拼写错误
atomgit-bot
atomgit-bot
Aug 11 Comments:

变更摘要

本次 PR 集中修复了源码注释、诊断日志和错误消息中的多处英文拼写错误,涉及 11 个文件共 17 处修正。修正范围涵盖 C++ 头文件与源文件、Python 脚本以及测试文件,统一将诸如 defalut→default、falied→failed、seperate→separate、intput→input 等常见拼写错误更正为正确形式,避免开发者在阅读诊断输出和源码时产生误解。

主要改动

  • tune_sync_for_vf.cpp 中 falied → failed 批量修正:将 UpdatePipeVTime、UpdateSetPipeTime、UpdateWaitPipeTime、MoveBackPipeVOps 四个函数中 APASS_LOG_ERROR_F 日志消息的 falied 统一更正为 failed,确保错误日志的可读性。

  • seperate → separate 统一修正:在 graph_utils.h 的注释以及 expand_function.cpp 的 VerifyScopeInfo 错误消息中,将 "CV seperate platform" 修正为 "CV separate platform",消除术语拼写不一致。

  • test_dynamic_mm.cpp 中 intput → input 批量修正:将四个测试用例(mm_A_Bt_ND_fp16_BIAS、mm_A_Bt_NZ_fp16_BIAS、mm_A_B_NZ_fp32_BIAS、mm_A_Bt_NZ_int8_BIAS)前的注释 // intput: 统一修正为 // input:。

  • 其他诊断消息与注释的拼写修正:包括 device_error_code.h 宏注释中 defalut→default、codegen_vector.cpp 日志中 occured unsupport→occurred unsupported、operation_impl.cpp 断言中 interger→integer、device_task_context.cpp 日志中 Inital→Initial、directed_graph_util.h 注释中 lenght→length、cube_process.cpp 日志中 invlid→invalid,以及 pil2ir.py 注释中 funtion→function。

likedislike
Incorrect?
atomgit-bot
atomgit-bot
Aug 11 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Aug 11 Added label: cann-cla/yes
70 messages are collapsed here。 See more
yumeng_27
yumeng_27Collaborators
Aug 13 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Aug 13 Added label: approved
dai-zhentao
dai-zhentaoCollaborators
Aug 13 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Aug 13 Added label: lgtm
CANN-robotCANN-robotCollaborators
Aug 13 Merged pull request