Closed
[Documentation|文档反馈]: 修正 concat、diag_v2、dynamic_stitch、fill 等文件的注释与代码不一致问题 #3820
TangPCAdd on  18 days agoClosed at  17 days ago
TangPC
TangPCCollaborators
18 days ago Create

一、文档链接 (必填)

本次修正对象为源码内注释(无独立文档页面),涉及以下文件:

  • conversion/concat/tests/ut/op_host/test_concat_infershape.cpp
  • conversion/diag_v2/op_kernel/diag_v2_b32.h
  • conversion/dynamic_stitch/op_kernel/arch35/dynamic_stitch_scatter_simt.h
  • conversion/fill/op_api/aclnn_fill_scalar.h
  • conversion/fill/op_api/aclnn_fill_tensor.h

二、问题文档片段 (必填)

文件 原注释内容 修正后内容
conversion/concat/tests/ut/op_host/test_concat_infershape.cpp \file test_concat_infershpe.cpp \file test_concat_infershape.cpp
conversion/diag_v2/op_kernel/diag_v2_b32.h #endif // DIAG_V2_B64_H #endif // DIAG_V2_B32_H
conversion/dynamic_stitch/op_kernel/arch35/dynamic_stitch_scatter_simt.h \file dynamic_stitch_simt.h \file dynamic_stitch_scatter_simt.h
conversion/fill/op_api/aclnn_fill_scalar.h #endif // OP_API_INC_FILL_H_ #endif // OP_API_ACLNN_FILL_SCALAR_H_
conversion/fill/op_api/aclnn_fill_tensor.h #endif // OP_API_INC_LEVEL2_ACLNN_FILL_TENSOR_H_(文件末尾无换行) #endif // OP_API_ACLNN_FILL_TENSOR_H_(补充文件末尾换行)

💡 存在的问题(选填)

  • 上述 \file 注释与实际文件名不一致,#endif 尾注释与真实头文件保护宏不一致,容易误导阅读与后续维护。
  • 同时按仓库 pre-commit 要求,对被修改文件应用了 clang-format、文件末尾换行与空白修复,仅格式调整,不涉及业务逻辑、接口行为或配置默认值。

关联 PR:https://gitcode.com/cann/ops-math/pull/6598

likedislike
TangPCTangPCCollaborators
18 days ago Added label: documentation
TangPC
TangPCCollaborators
18 days ago Comments:
likedislike
CANN-robotCANN-robotCollaborators
18 days ago Assign pingchuantang as responsible person
CANN-robotCANN-robotCollaborators
17 days ago Close issue
CANN-robotCANN-robotCollaborators
17 days ago Added label: resolved