已合并
[CANNBOT]atanh 算子修改tiling #3184
wangweidong创建于 6月8日
[CANNBOT]atanh 算子修改tiling #3184
已合并
wangweidong创建于 6月8日
wangweidong
6月8日

描述

atanh 算子修改tiling

关联的Issue

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

测试

文档更新

类型标签

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

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
math/atanh 周奇龙, jia0liang (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

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

likedislike
Wwangweidong
6月8日 修改了pull request 的描述
wangweidong
6月8日 评论:

compile

likedislike
Wwangweidong
6月8日 update merge request[project id: 7649531, iid: 3184, commit_id: ddb94fbda9cd40bc913d953c3a7f480113160fff] virtual merging success
CANN-robotCANN-robot成员
6月8日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月8日 评论:

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

任务名称状态日志下载链接
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-08 17:55:52]    CI执行结束

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

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

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

[2026-06-08 17:52:16]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月8日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月8日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月8日 添加了label:ci-pipeline-passed
majiajian_hw成员6月9日进行代码检视1
math/atanh/examples/arch35/test_aclnn_atanh.cpp
@@ -57,2 +51,2 @@
57- ret = aclrtMemcpy(*deviceAddr, size, hostData.data(), size, ACL_MEMCPY_HOST_TO_DEVICE);
58- CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclrtMemcpy failed. ERROR: %d\n", ret); return ret);
51+ aclDataType dataType, aclTensor** tensor) {
52+ auto size = GetShapeSize(shape) * sizeof(T);
majiajian_hw6月9日评论:

确认缩进是否合理

likedislike
wang-xing001成员6月9日进行代码检视1
math/atanh/examples/test_aclnn_atanh.cpp
@@ -84,0 +117,4 @@
117+ // 根据第一段接口计算出的workspaceSize申请device内存
118+ void* inplaceWorkspaceAddr = nullptr;
119+ if (inplaceWorkspaceSize > 0) {
120+ ret = aclrtMalloc(&inplaceWorkspaceAddr, inplaceWorkspaceSize, ACL_MEM_MALLOC_HUGE_FIRST);
wang-xing0016月9日评论:

SEC-5.2 FAIL — 两个示例文件中,新增的 aclnnInplaceAtanh 路径申请了 inplaceWorkspaceAddr(aclrtMalloc,行 120),但清理阶段(行 146-151)未释放。原有 aclnnAtanh 的 workspaceAddr 有 aclrtFree,新增路径遗漏了对称释放。
修复:在 aclrtFree(workspaceAddr) 之后补充:
if (inplaceWorkspaceSize > 0) {
aclrtFree(inplaceWorkspaceAddr);
}

likedislike
Wwangweidong
6月11日 update merge request[project id: 7649531, iid: 3184, commit_id: 41c48027a37c7d91ad2a7b785952d7ef44fee83b] virtual merging success
Wwangweidong
6月11日 推送  1 个提交:7291f5f8-fix(atanh): 修复大shape(>=29M元素)触发507035向量核异常
Wwangweidong
6月11日 update merge request[project id: 7649531, iid: 3184, commit_id: 47fb099b233cb67169f5262e63e50ba5e81fb2a9] virtual merging success
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
6月11日 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
Wwangweidong
6月11日 修改了pull request 的描述
wangweidong
6月12日 评论:

compile

likedislike
陈佳良成员
6月12日 评论:

/lgtm
/approve

likedislike
wangweidong
6月12日 评论:
likedislike
sunday成员
6月12日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月12日 添加了label:lgtmapproved
NerdddddddddddNerddddddddddd成员
6月12日 解决了最后一个问题
wangweidong
6月12日 评论:

/check-pr

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

The following label is not ready.

ci-pipeline-passed: Please wait for the CI test to be completed.

likedislike
wangweidong
6月12日 评论:

compile

likedislike
Wwangweidong
6月12日 update merge request[project id: 7649531, iid: 3184, commit_id: c9cef09e04774924f55f3766227f53b41113f278] virtual merging success
CANN-robotCANN-robot成员
6月12日 删除了label:api-check-pass
CANN-robotCANN-robot成员
6月12日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月12日 评论:

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

任务名称状态日志下载链接
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-12 15:25:00]    CI执行结束

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

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

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

[2026-06-12 15:18:02]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月12日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月12日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月12日 添加了label:ci-pipeline-passed
CANN-robotCANN-robot成员
6月12日 关闭了关联的issue
CANN-robotCANN-robot成员
6月12日 合入了pull request