Merged
fix: circular_pad_grad golden 支持 torch.Tensor 输入并对非法输入零值降级 #6873
tan_xinAdd on 11 days ago
fix: circular_pad_grad golden 支持 torch.Tensor 输入并对非法输入零值降级 #6873
Merged
Merged fromtan_xin/ops-mathmaster-tileintocann/ops-mathmaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for tan_xin's contribution.)11 days ago virtual merging failed, update merge request[project_id: 7649531, iid: 6873, target_commit_sha: 766f97b3fcd28426a15fae983f32e02060ba253b], message: MR has no commits
11 days ago virtual merging failed, update merge request[project_id: 7649531, iid: 6873, target_commit_sha: 766f97b3fcd28426a15fae983f32e02060ba253b], message: MR has no commits
CANN-robot
11 days ago Comments:
11 days ago Comments:
CANN-robot
11 days ago Comments:
11 days ago Comments:
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.
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 |
|---|---|---|
| conversion/circular_pad_grad | ✅ 汤平川, 宋恺 (2/2) | ✅ 汤平川 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
tan_xin, thanks for your pull request. All authors of the commits have signed the CLA. 👍


11 days ago Added label: cann-cla/yes
11 days ago Set FelixTang7,yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,clinglai0517 as approver
11 days ago Set FelixTang7,yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,clinglai0517 as approver
11 days ago Set FelixTang7,yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,clinglai0517 as approver
11 days ago Set FelixTang7,yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,clinglai0517 as approver
CANN-robot
11 days ago Comments:
11 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


11 days ago Added label: ci-pipeline-running
11 days ago Change title to "fix: circular_pad_grad golden 支持 torch.Tensor 输入并对非法输入零值降级", originally titled "fix: 完善circular_pad_grad aclnn golden对torch输入支持及非法输入零值降级".
CANN-robot
11 days ago Comments:
11 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


11 days ago Removed label: ci-pipeline-running
11 days ago Added label: ci-pipeline-failed
11 days ago Removed label: ci-pipeline-failed
11 days ago Added label: ci-pipeline-passed
TangPC
11 days ago Comments:
11 days ago Comments:
/lgtm
/approve


11 days ago Added label: approved
songkai111
11 days ago Comments:
11 days ago Comments:
/lgtm


11 days ago Added label: lgtm
11 days ago Closed associated issue
11 days ago Merged pull request
描述
完善
conversion/circular_pad_grad/tests/assets/golden.py对 aclnn 通路 golden 的处理:circular_pad_grad_golden与_aclnn_circular_pad_grad_golden均增加对 torch.Tensor 输入的支持(detach().cpu().numpy()转换或直接透传给 torch 计算)。"bfloat16" in origin_dtype),覆盖 torch dtype 字符串变体。_aclnn_zero_fallback,当 golden 数学对非法输入(expected_error 用例,如 padding 非法)必然失败时,不再先行抛出 GOLDEN_FAILURE 中断流程,而是返回与输出容器同 shape/dtype 的零参考,让用例继续进入算子侧校验,由算子拒收产生证据。AclnnCircularPad2dBackwardSpec.golden/AclnnCircularPad3dBackwardSpec.golden增加gradInput参数,并包裹 try/except 实现零值降级。关联的Issue
关联 Issue #4302
测试
文档更新
NA
类型标签