Merge blocked
ascend docs pipeline is running...


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/ops-rec | ❌ (0/2)(You can also ask: zmingh, xuyan235, zxorange_321, caohuanqi, lihao_huawei) | ❌ (0/1)(You can also ask: yangzhen92a, 曾伟, 项攀霄, imhandsome1, 蒋皓洋) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


ascend docs pipeline is running...


✅ 跳过 docs ci 检查,没有需要检查的文档文件


| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | PR-build-SAST-check | ✅ COMPLETED | >>> |
| Build-2.7.1_arm | ✅ COMPLETED | >>> | |
| Build-2.10.0_arm | ✅ COMPLETED | >>> | |
| Build-2.7.1_X86 | ✅ COMPLETED | >>> | |
| Build-2.10.0_X86 | ✅ COMPLETED | >>> | |
| 恶意代码检查 | Antipoison | ✅ COMPLETED | >>> |
| 编码安全与规范检查 | pre-commit | ✅ COMPLETED | >>> |
| clang-tidy | ✅ COMPLETED | >>> | |
| 开源片段检查 | SCA | ✅ COMPLETED | >>> |
| 开发者测试 | presmoke | ✅ COMPLETED | >>> |
| 流水线 | PR-pipeline_ops-rec | ✅ COMPLETED | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


[P2] 29 个测试函数仅 1 个带 @pytest.mark.ci,CI 实际执行面≈仅 4×512 fp16 冒烟(PR 模板硬性项)
问题
本文件 29 个 def test_* 中只有 test_norm_multiply_dropout_backward_ci(L332,run_case(4, 512, fp16))打了 @pytest.mark.ci;backward_double_pole 泛化 42 组合(L336-341)、graph 用例(L344+)、以及 L409 起约 20 个边界校验用例全部无 ci 标记。PR 模板自检项明确要求「pytest 测试用例需包含 @pytest.mark.ci 标记,以便 CI 流水线识别并执行」。
影响
CI -m ci 过滤下,反向 kernel 的 dtype 矩阵、dropout_ratio=1.0 全零梯度语义(本 PR 声称的核心行为)、d_out/shape 校验回归均不执行;后续破坏不会拦截。#234 前向文件同款(20 个函数仅 4 个带 ci),可一并处理。
建议
模块级 pytestmark = [pytest.mark.ci],graph 用例叠加 @pytest.mark.graph;大 dim0(927750/1e6)组合如担心时长可拆出独立非 ci 用例或用例内 skip 重参数,但不要整体裸奔。


合入来源
问题/功能描述
norm_multiply_dropout 算子迁移(系列 PR 5/6):新增反向算子测试用例与 aclnn/torch 调用示例,并挂载算子目录构建。
修改方案描述
@pytest.mark.ci标记、set_device 默认 0):非法参数校验、dropout_ratio/eps 开闭区间边界用例(dropout_ratio=1.0 断言梯度全 0 且有限,对齐 PyTorch native_dropout_backward 语义)、泛化 shape/dtype、测试实现与 RecSDK 对齐run_examples.sh --ops norm_multiply_dropout自动发现执行是否涉及UT/ST
开发自检