已合并
删除冗余文件 #2055
LSYlsy0214创建于 2月25日
删除冗余文件 #2055
已合并
LSYlsy0214创建于 2月25日
LSYlsy0214
2月25日

描述

ops/ops-nn/activation/silu_grad/op_host/silu_grad_infershape.cpp
ops/ops-nn/activation/hardtanh_grad/op_host/hardtanh_grad_def.cpp
ops/ops-nn/activation/softplus/op_host/softplus_def.cpp
ops/ops-nn/activation/swish_grad/op_host/swish_grad_def.cpp
ops/ops-nn/activation/relu_grad_v2/op_host/relu_grad_v2_infershape.cpp
ops/ops-nn/activation/log_softmax_v2/op_host/log_softmax_v2_infershape.cpp
ops/ops-nn/activation/relu_grad_v2/op_host/relu_grad_v2_def.cpp
ops/ops-nn/activation/mish_grad/op_host/mish_grad_def.cpp
ops/ops-nn/activation/log_sigmoid/op_host/log_sigmoid_def.cpp
ops/ops-nn/activation/sigmoid_grad/op_host/sigmoid_grad_infershape.cpp
ops/ops-nn/activation/gelu_grad/op_host/gelu_grad_infershape.cpp
冗余代码片段,需要删除

关联的Issue

https://gitcode.com/cann/ops-nn/issues/1143

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 LSYlsy0214 的贡献)
LLSYlsy0214
2月25日 创建了 pull request,commit 10552aa4
CANN-robot
CANN-robot成员
2月25日 评论:

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
*/*/op_host/*_def.cpp tang-lei01, fanqirui (2/2) tang-lei01 (1/1)
activation zhajianqing123, fanqirui (2/2) zhajianqing123 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robot成员
2月25日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
2月25日 将crystalhu,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangyongguang,zhang-wu设为评审人
CANN-robotCANN-robot成员
2月25日 将crystalhu,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,wangyongguang,zhang-wu设为审查人
CANN-robot
CANN-robot成员
2月25日 评论:

CLA Signature Pass

LSYlsy0214, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
2月25日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CANN-robot
CANN-robot成员
2月25日 评论:

问题/功能描述

本次PR对多个激活函数相关的算子实现文件进行了代码清理,旨在优化代码结构并消除潜在的编译警告。主要工作是移除冗余或未使用的头文件引用,不涉及任何功能逻辑的变更,以提升代码的整洁性和可维护性。

修改方案描述

统一移除了多个算子定义(*_def.cpp)和形状推断(*_infershape.cpp)文件中不必要的头文件引用。具体包括在算子定义文件中移除未使用的 <cstdint> 头文件,在形状推断文件中移除未使用的 "log/log.h""op_util.h" 头文件。这些修改不会影响代码的编译和运行。

likedislike
LSYlsy0214
2月25日 评论:

compile

likedislike
CANN-robotCANN-robot成员
2月25日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2月25日 评论:

流水线任务触发成功 [流水线指导]
任务链接 [35dce5b216d94264bd81ee58bbca00fe]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
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 >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
Pre_Compile ✅ SUCCESS
pre_comment ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-02-25 16:02:36]    CI执行结束

likedislike
LLSYlsy0214
2月25日 修改了pull request 的描述
LLSYlsy0214
2月25日 修改了pull request 的描述
CANN-robotCANN-robot成员
2月25日 添加了label:api-check-pass
CANN-robotCANN-robot成员
2月25日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月25日 添加了label:ci-pipeline-passed
范其瑞
范其瑞成员
2月25日 评论:

/lgtm

likedislike
tang-lei01成员
2月25日 评论:

/approve

likedislike
zhajianqing123成员
2月25日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
2月25日 添加了label:lgtm
zhajianqing123成员
2月25日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
2月25日 添加了label:approved
CANN-robot
CANN-robot成员
2月25日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zhajianqing123, tang-lei01.
Reviewers who wrote a comment of /lgtm are: fanqirui, tang-lei01, zhajianqing123.

likedislike
CANN-robotCANN-robot成员
2月25日 合入了pull request