已合并
修改ActsULQInputGrad and ActULQClampMaxGrad算子原型宏定义,避免编译冲突 #8480
Nerddddddddddd创建于 8月10日
修改ActsULQInputGrad and ActULQClampMaxGrad算子原型宏定义,避免编译冲突 #8480
已合并
Nerddddddddddd创建于 8月10日
Nerddddddddddd
Nerddddddddddd成员
8月10日

描述

恢复ActsULQInputGrad and ActULQClampMaxGrad算子原型,避免编译冲突

关联的Issue

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

测试

OBP冒烟 耳机冒烟均已通过

文档更新

类型标签

AI/Agent生成声明

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 Nerddddddddddd 的贡献)
NerdddddddddddNerddddddddddd成员
8月10日 创建了 pull request,commit 23e6391e
atomgit-bot
atomgit-bot
8月10日 评论:

变更摘要

此 PR 将两个量化算子原型头文件的 include guard 宏命名规范从旧的 OPS_OP_PROTO_INC_<NAME>_H_ 风格统一为 OPS_PROTO_DEF_<NAME> 风格,以与 ops_proto_legacy.h 中的命名约定保持一致,避免因头文件保护宏不统一导致的潜在重定义问题。

主要改动

  • act_ulq_clamp_max_grad_proto.h 宏重命名: 将 #ifndef/#define OPS_OP_PROTO_INC_ACT_ULQ_CLAMP_MAX_GRAD_H_ 替换为 OPS_PROTO_DEF_ACTULQCLAMPMAXGRAD,算子名采用全大写无分隔符格式。
  • acts_ulq_input_grad_proto.h 宏重命名: 将 #ifndef/#define OPS_OP_PROTO_INC_ACTS_ULQ_INPUT_GRAD_H_ 替换为 OPS_PROTO_DEF_ACTSULQINPUTGRAD,算子名同样采用全大写无分隔符格式。
likedislike
不准确?
atomgit-bot
atomgit-bot
8月10日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
8月10日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
8月10日 评论:

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_graph/*_proto.h ✅ 王永光, 陈琦 (2/2) ✅ 王永光 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robot成员
8月10日 评论:

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
8月10日 将zengjuan,chaotang233,crystalhu,yangyang016,fanqirui,tang-lei01,chenqi317,liubo75,tangweiwei2,pingchuantang,wangyongguang设为评审人
CANN-robotCANN-robot成员
8月10日 将tang-lei01,wangyongguang设为审查人
NerdddddddddddNerddddddddddd成员
8月10日 修改了pull request 的描述
NerdddddddddddNerddddddddddd成员
8月10日 修改标题为 “恢复ActsULQInputGrad and ActULQClampMaxGrad算子原型,避免编译冲突”,原标题为“fix: align ops proto include guard with ops_proto_legacy.h”
NerdddddddddddNerddddddddddd成员
8月10日 修改了pull request 的描述
NerdddddddddddNerddddddddddd成员
8月10日 修改了pull request 的描述
Nerddddddddddd
Nerddddddddddd成员
8月10日 评论:

compile

likedislike
NerdddddddddddNerddddddddddd成员
8月10日 预合并成功(commit_id: 91565ac2d19bec326aed12169f91811599919855)
CANN-robotCANN-robot成员
8月10日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
8月10日 评论:

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

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ 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 >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
Compile_Ascend_X86_mobile_station_9030_ubuntu24 ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_harmony-infer-chs-nn ✅ SUCCESS
UT_Test_harmony-infer-chs-nn-1 ✅ SUCCESS
UT_Test_harmony-infer-cpro-nn ✅ SUCCESS
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-08-10 16:46:52]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
8月10日 评论:

流水线任务触发成功
任务链接 [395e8453dbc24ddb9172ec902b8e66be][流水线指导]

任务名称状态日志下载链接
antipoison ✅ SUCCESS >>>>>
codecheck_checkpr ✅ SUCCESS
StaticCheck_codespell ✅ SUCCESS
StaticCheck_link_validity ✅ SUCCESS
StaticCheck_resource_existence ✅ SUCCESS
StaticCheck_tag_closed ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_precommit ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>

[2026-08-10 16:27:59]    CI执行结束

likedislike
CANN-robotCANN-robot成员
8月10日 添加了label:api-check-pass
CANN-robotCANN-robot成员
8月10日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月10日 添加了label:ci-pipeline-passed
NerdddddddddddNerddddddddddd成员
8月10日 修改标题为 “修改ActsULQInputGrad and ActULQClampMaxGrad算子原型宏定义,避免编译冲突”,原标题为“恢复ActsULQInputGrad and ActULQClampMaxGrad算子原型,避免编译冲突”
wangyongguang成员
8月11日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
8月11日 添加了label:approved
NerdddddddddddNerddddddddddd成员
8月11日 修改了pull request 的描述
chenqi317成员
8月11日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月11日 添加了label:lgtm
CANN-robotCANN-robot成员
8月11日 关闭了关联的issue
CANN-robotCANN-robot成员
8月11日 合入了pull request