已合并
补充index-c的classify rule #8881
yue-ma创建于 8月18日
补充index-c的classify rule #8881
已合并
yue-ma创建于 8月18日
yue-ma成员
8月18日

描述

补充index-c的classify rule

关联的Issue

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

测试

NA

文档更新

NA

类型标签

AI/Agent生成声明

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 yue-ma 的贡献)
Yyue-ma成员
8月18日 创建了 pull request,commit ef6d5dc7
atomgit-bot
atomgit-bot
8月18日 评论:

变更摘要

本 PR 为 classify_rule.yaml 补充了 index-c@ops-nn 的 classify rule,新增 82 行配置。该规则为 ops/ops-nn/index/ 下的算子目录定义了代码分类归属:将各算子的源码目录归入 src.release.style(发布样式类),将部分算子的 tests/ 与 examples/ 目录归入 src.unrelease.test_code(非发布测试代码类),其余字段(opensource_style、kernel_style、non_delivery、open_source)均置为 null。

主要改动

  • 新增 index-c@ops-nn 分类节点: 在 classify_rule.yaml 中 HPTG1@ops-nn 与 pooling-c@ops-nn 之间插入完整的 index-c@ops-nn 规则块,将 ops/ops-nn/index/ 下的算子目录纳入发布样式分类。
  • 配置 src.release.style 路径清单: 新增约 60 条目录路径,覆盖 apply_top_k_top_p_with_sorted、embedding、gather_*、scatter*、index_put*、index_fill*、unique* 等算子的 op_api/、op_host/、op_kernel/、arch22/ 等子目录,并保留算子名(如 index-c@ops-nn)与目录结构前缀 ops/ops-nn/index/ 的原有格式。
  • 配置 src.unrelease.test_code 路径清单: 将 apply_top_k_top_p_with_sorted、index_put_with_sort、linear_index、scatter_list、tf_scatter_add 五个算子的 tests/ 与 examples/ 目录归类为未发布测试代码,与 release.style 中的对应算子路径保持一致。
  • 其余字段显式置空: opensource_style、kernel_style、non_delivery、open_source 均声明为 null,明确该规则不涉及开源样式、内核样式、不交付及开源代码分类,且本次改动仅新增、无删除。
likedislike
不准确?
atomgit-bot
atomgit-bot
8月18日 评论:

代码审查

✅ 未发现问题

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

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.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/ops-nn ✅ 唐超, 唐玮玮 (2/2) ✅ 唐超 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
yue-ma成员
8月18日 评论:

compile

likedislike
Yyue-ma成员
8月18日 预合并成功(commit_id: 2b363c4a96069ca03b1d63700da60122e197f8d8)
此处折叠了8条事件消息 查看更多
CANN-robotCANN-robot成员
8月18日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
8月18日 评论:

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

任务名称状态日志下载链接
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>

[2026-08-18 20:03:11]    CI执行结束

likedislike
yue-ma成员
8月18日 评论:

compile

likedislike
Yyue-ma成员
8月18日 预合并成功(commit_id: 0ce13cbfffdd99f801b51951e2ab68d07a2a839d)
CANN-robot
CANN-robot成员
8月18日 评论:

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

任务名称状态日志下载链接
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 >>>>>

[2026-08-18 20:03:09]    CI执行结束

likedislike
CANN-robotCANN-robot成员
8月18日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月18日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
8月18日 评论:

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

任务名称状态日志下载链接
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_report_lcov ⚠️ WARNING >>>>>

[2026-08-18 20:14:40]    CI执行结束

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

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

任务名称状态日志下载链接
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-18 20:05:49]    CI执行结束

likedislike
CANN-robotCANN-robot成员
8月18日 添加了label:api-check-pass
CANN-robotCANN-robot成员
8月18日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月18日 添加了label:ci-pipeline-passed
tangweiwei2成员
8月18日 评论:

/lgtm

likedislike
tangweiwei2成员
8月18日 评论:

/lgtm

likedislike
唐超成员
8月18日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月18日 添加了label:lgtmapproved
CANN-robotCANN-robot成员
8月18日 合入了pull request