Closed
[Documentation|文档反馈]: 修正 matrix_diag 源文件注释与头文件保护宏注释不一致 #3822
TangPCAdd on  19 days agoClosed at  18 days ago
TangPC
TangPCCollaborators
19 days ago Create

一、文档链接 (必填)

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

  1. conversion/matrix_diag/op_graph/matrix_diag_graph_infer.cpp
    \file 注释写的是 matrix_diag_infershape.cpp,与实际文件名 matrix_diag_graph_infer.cpp 不一致。
  2. conversion/matrix_diag/op_host/matrix_diag_tiling_arch35.h
    #endif 尾注释写的是 OPS_BUILT_IN_OP_TILING_RUNTIME_MATRIX_DIAG_TILING_H_,实际保护宏为 OPS_MATH_CONVERSION_MATRIX_DIAG_OP_HOST_MATRIX_DIAG_TILING_ARCH35_H_;同时 MatrixDiagTiling 构造函数初始化列表后的空格不符合仓库 clang-format 规则。
  3. conversion/matrix_diag/op_kernel/arch35/matrix_diag_scatter_high_slice_batch.h
    \file 注释写的是 matrix_diag_big_n.h,与实际文件名 matrix_diag_scatter_high_slice_batch.h 不一致。
  4. conversion/matrix_diag/op_kernel/arch35/matrix_diag_scatter_high_slice_yUB.h
    \file 注释写的是 matrix_diag_big_n.h,与实际文件名 matrix_diag_scatter_high_slice_yUB.h 不一致。

💡 存在的问题(选填)

源文件头注释与保护宏尾注释和实际代码不一致,容易误导阅读与检索;构造函数格式也不符合仓库 pre-commit 的 clang-format 规则。本 PR 统一修正上述注释并同步格式,改动不涉及业务逻辑、接口行为或配置默认值。说明:conversion/im2col/op_kernel/arch35/im2col_norm_NHWC.h 存在既有的大范围 clang-format 差异(约 169 行),不在本 PR 处理范围内,留待单独处理。

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

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