Merged
fix(examples): Separate dynamic logic from elementwise_ops and complete dynamic usage examples #1220
shengxinchenAdd on Feb 27
fix(examples): Separate dynamic logic from elementwise_ops and complete dynamic usage examples #1220
Merged
Merged fromshengxinchen/pyptofix/2_examples-260227intocann/pyptomaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for shengxinchen's contribution.)Feb 27 Created pull request, commit 43b0dd27
Feb 27 Associated issue: [Bug-Report|缺陷反馈]: 【green light】elementwise_ops.py的add::test_add_basic样例跑动态模式报错
Feb 27 Associated issue: [Bug-Report|缺陷反馈]: 【green light】elementwise_ops.py的add::test_add_basic样例跑动态模式报错
CANN-robot
Feb 27 Comments:
Feb 27 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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/pypto | ✅ wcwxy, lyfne (2/2) | ✅ lyfne (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


Feb 27 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,gcw_9WvwSY5N as approver
Feb 27 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,gcw_9WvwSY5N as approver
Feb 27 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,gcw_9WvwSY5N as approver
Feb 27 Set cam_bxh,dai-zhentao,zhangqi-chen,jiawei_zhuang,gguuaanngg,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,lyfne,zhangyuebing,tsungl4,gaoxingwang,zhoubotcam,wcwxy,linjiashu,poursoul,gcw_9WvwSY5N as approver
Feb 27 Added label: cann-cla/yes
CANN-robot
Feb 27 Comments:
Feb 27 Comments:
CANN-robot
Feb 27 Comments:
Feb 27 Comments:
🔵 source code change are detected, tasks labels is removed in this pull request!


shengxinchen
Feb 27 Comments:
Feb 27 Comments:
compile


Feb 27 Added label: ci-pipeline-running
CANN-robot
Feb 27 Comments:
Feb 27 Comments:
流水线任务触发成功 [流水线指导]
任务链接 [babfcc5505184553adced76b7b07a045]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ❌ FAILED | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | ||
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_Py3_ninja_simulation | ⚪ ABORTED | ||
| UT_Test_Py3_ninja | ⚪ ABORTED | ||
| UT_Test_Cpp_make_clang | ⚪ ABORTED | ||
| UT_Test_Cpp_make_gnu | ⚪ ABORTED | ||
| UT_Test_Cpp_make_gnu_part_1 | ⚪ ABORTED | ||
| UT_Test_Cpp_make_gnu_part_2 | ⚪ ABORTED | ||
| UT_Test_Cpp_make_gnu_part_3 | ⚪ ABORTED | ||
| UT_Test_report | ⚪ ABORTED | >>>>> | |
| Smoke_A900 | ⚪ ABORTED | >>>>> |
[2026-02-27 18:04:02] CI执行失败


Feb 27 Removed label: ci-pipeline-running
Feb 27 Added label: ci-pipeline-failed
shengxinchen
Feb 27 Comments:
Feb 27 Comments:
compile


Feb 27 Removed label: ci-pipeline-failed
Feb 27 Added label: ci-pipeline-running
CANN-robot
Feb 27 Comments:
Feb 27 Comments:
流水线任务触发成功 [流水线指导]
任务链接 [427fca97b53d4347b636108d96ecf343]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_Py3_ninja_simulation | ✅ SUCCESS | ||
| UT_Test_Py3_ninja | ✅ SUCCESS | ||
| UT_Test_Cpp_make_clang | ✅ SUCCESS | ||
| UT_Test_Cpp_make_gnu | ✅ SUCCESS | ||
| UT_Test_Cpp_make_gnu_part_1 | ✅ SUCCESS | ||
| UT_Test_Cpp_make_gnu_part_2 | ✅ SUCCESS | ||
| UT_Test_Cpp_make_gnu_part_3 | ✅ SUCCESS | ||
| UT_Test_report | ✅ SUCCESS | >>>>> | |
| Smoke_A900 | ✅ SUCCESS | >>>>> | >>>>> |
[2026-02-27 19:08:26] CI执行结束


Feb 27 Removed label: ci-pipeline-running
Feb 27 Added label: ci-pipeline-passed
wcwxy
Feb 28 Comments:
Feb 28 Comments:
/lgtm


linyifan
Feb 28 Comments:
Feb 28 Comments:
/approve


Feb 28 Added label: lgtmapproved
CANN-robot
Feb 28 Comments:
Feb 28 Comments:
Feb 28 Merged pull request
描述
本次 PR 对 examples 目录下的示例代码进行了职责拆分与内容补全,主要包括:
相关的计算操作,职责更加清晰;
等进行显式循环与分块处理等用法,使动态场景的示例更加完整、易于理解。
说明:上述修改旨在让各示例文件职责单一、表达清晰,降低用户理解成本。
测试
类型标签
Related Issue: #463