已合并
cdist_grad 950 use compare_select #3278
chenxingyu18创建于 6月11日
cdist_grad 950 use compare_select #3278
已合并
chenxingyu18创建于 6月11日
chenxingyu18成员
6月11日

描述

cdist_grad 950的p=inf分支,使用算术运算在临界值域时存在精度问题,现使用compare + select替代,以提升精度

关联的Issue

https://gitcode.com/cann/ops-math/issues/1953

测试

已通过泛化测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chenxingyu18 的贡献)
Cchenxingyu18成员
6月11日 创建了 pull request,commit fe7438a3
CANN-robotCANN-robot成员
6月11日 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
6月11日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月11日 评论:

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
repo-cann/ops-math 宋凯, 冯彤 (2/2) 宋凯, 冯彤 (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
Cchenxingyu18成员
6月11日 update merge request[project id: 7649531, iid: 3278, commit_id: 6c3ce91347b122007a8d4f31f7a4f41ce7c05158] virtual merging success
此处折叠了8条事件消息 查看更多
CANN-robotCANN-robot成员
6月11日 删除了label:stat/needs-squash
CANN-robot
CANN-robot成员
6月11日 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): stat/needs-squash.

likedislike
chenxingyu18成员
6月11日 评论:

compile

likedislike
Cchenxingyu18成员
6月11日 update merge request[project id: 7649531, iid: 3278, commit_id: e3bbafca4b6875f48fd150059bd7282f23779028] virtual merging success
Cchenxingyu18成员
6月11日 修改了pull request 的描述
Cchenxingyu18成员
6月11日 修改标题为 “cdist_grad 950 use compare_select”,原标题为“debug accuracy”
Cchenxingyu18成员
6月11日 修改了pull request 的描述
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

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

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-11 20:16:38]    CI执行结束

likedislike
Cchenxingyu18成员
6月11日 修改了pull request 的描述
CANN-robot
CANN-robot成员
6月11日 评论:

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

任务名称状态日志下载链接
codecheck ❌ FAILED >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-failed
Cchenxingyu18成员
6月11日 update merge request[project id: 7649531, iid: 3278, commit_id: 65c26bbe9b31851a6b453035d614198e91e9382a] virtual merging success
Cchenxingyu18成员
6月11日 强制推送  1 个提交:d92be884-use compare select
Cchenxingyu18成员
6月11日 update merge request[project id: 7649531, iid: 3278, commit_id: e6ac705815a647e05af75cb0dcfa3508f617c2c4] virtual merging success
chenxingyu18成员
6月11日 评论:

compile

likedislike
Cchenxingyu18成员
6月11日 update merge request[project id: 7649531, iid: 3278, commit_id: 6d57da4802f8d5fa63d4ac149d003dcd6db38320] virtual merging success
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-failedapi-check-pass
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

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

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-11 20:26:17]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-11 20:22:37]    CI执行结束

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

/approve

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:approved
songkai111成员
6月11日 评论:

/lgtm
/approve

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