已合并
修改重复代码 #6913
fitZepHYr创建于 7月2日
修改重复代码 #6913
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 fitZepHYr 的贡献)7月2日 关联了issue:[Bug-Report|缺陷反馈]: Clean Code代码重复率以及超大函数比例
7月2日 添加了label:cann-cla/yes
CANN-robot
7月2日 评论:
7月2日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| conv | ✅ 唐玮玮, 刘波 (2/2) | ✅ 刘波 (1/1) |
| pooling | ✅ 刘波, 唐玮玮 (2/2) | ✅ 刘波 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
VoyageZhou, thanks for your pull request. All authors of the commits have signed the CLA. 👍


fitZepHYr
7月2日 评论:
7月2日 评论:
compile


7月2日 update merge request[project id: 7665709, iid: 6913, commit_id: f403d7dc3fa3d9f3d2c8df034091272068317f8c] virtual merging success
7月2日 update merge request[project id: 7665709, iid: 6913, commit_id: f403d7dc3fa3d9f3d2c8df034091272068317f8c] virtual merging success
7月2日 添加了label:ci-pipeline-running
CANN-robot
7月2日 评论:
7月2日 评论:
流水线任务触发成功
任务链接 [44f5df904f494be2b314b3d25240ac53][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer-chs-nn | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-07-02 16:32:16] CI执行结束


CANN-robot
7月2日 评论:
7月2日 评论:
流水线任务触发成功
任务链接 [97a90e33a6eb48f28c22e94f1cad72fd][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> |
[2026-07-02 16:23:22] CI执行结束


7月2日 添加了label:approved
tangweiwei2
7月2日 评论:
7月2日 评论:
/lgtm


7月2日 添加了label:lgtm
7月2日 删除了label:ci-pipeline-running
7月2日 添加了label:ci-pipeline-passed
7月2日 合入了pull request
描述
修改重复代码
关联的Issue
Issue 3753
测试
文档更新
ops/ops-nn/pooling/avg_pool3_d_grad/op_kernel/avg_pool3_d_grad_t_cast.h
ops/ops-nn/conv/conv3d_transpose_v2/op_host/conv3d_transpose_v2_infershape.cpp
ops/ops-nn/conv/conv3d_backprop_filter_v2/op_kernel/arch32/conv3d_backprop_filter_impl/conv_bp_config_base.h
ops/ops-nn/conv/conv3d_backprop_input_v2/op_kernel/arch32/conv3d_backprop_input_impl/conv3d_bp_config_base.h
ops/ops-nn/pooling/adaptive_avg_pool3d_grad/op_kernel/arch35/adaptive_avg_pool3d_grad_struct.h
ops/ops-nn/pooling/max_pool3d_grad_with_argmax/op_api/max_pool3d_grad_with_argmax.cpp
类型标签
AI/Agent生成声明