Merged
feat(pypto_pro): Upload for load_unalign post delete #6830
liuyu205Add on Oct 8
feat(pypto_pro): Upload for load_unalign post delete #6830
Merged
liuyu205Add on Oct 8
liuyu205
Oct 8

Upload for load_unalign post delete

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liuyu205's contribution.)
liuyu205liuyu205
Oct 8 Created pull request, commit 10aba0a5
atomgit-bot
atomgit-bot
Oct 8 Comments:

变更摘要

本 PR 调整了 vf.load_unalign 与 vf.store_unalign 的接口语义:load_unalign 不再使用 post_update 关键字参数,而是由「是否传入 stride 参数」来决定是否进入 POST_UPDATE 模式;同时 store_unalign 的带 stride 的 vstus 路径被收敛为必须配合 post_update=True。变更同步覆盖了 IR 算子注册、后端 CCECodegen 代码生成、Python 前端 Vf API 及对应的单元/系统测试。

主要改动

  • vf.load_unalign 接口移除 post_update 参数: _vf_api.py 中的 load_unalign(align_reg, tile, stride=None) 去掉了 post_update: bool = False,vf_ops.cpp 中移除 .set_attr<bool>("post_update") 并将 stride 描述改为「传入即选择 POST_UPDATE 模式」。
  • EmitVFLoadUnalign 代码生成分支简化: 带 stride 的 4 参数形式直接生成 vldus(..., POST_UPDATE),删除了对 post_update kwarg 的读取与「stride 必须配合 post_update」的校验,以及无 stride 时对 post_update=True 的拒绝逻辑。
  • EmitVFStoreUnAlign 的 stride 与 AddrReg 分支语义区分: 带 stride 的 vstus 新增 PRO_CODEGEN_CHECK,要求 post_update=True 否则报错并提示改用 vf.squeeze_store_unalign,且固定发出 POST_UPDATE;AddrReg 形式 vstu 则保留读取 post_update、支持 POST_UPDATE 与 NORM 两种模式。
  • store_unalign 文档说明更新: _vf_api.py 中 store_unalign 的 docstring 说明 vstus 需 post_update=True,vstu(AddrReg)支持两种模式,与后端约束保持一致。
  • 测试用例同步调整: test_backend_cce_vf_ops.cpp 中去掉 load_unalign 的 post_update kwarg,新增 stride 缺少 post_update=True 时抛错的用例并调整 AddrReg NORM 用例注释,test_vf_basic_ops.py 的 load_unalign 调用去掉 post_update=True。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Oct 8 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Oct 8 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 8 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
9.2.0 ✅ gcw_kUomxQ2l, gaoxiang618 (2/2) ✅ gcw_kUomxQ2l (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Oct 8 Comments:

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Oct 8 Set xinweiliu,lyz0328,cam_bxh,dai-zhentao,TianXL,lululu40888,shi-dingkun,gguuaanngg,codehjp423,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,gcw_kUomxQ2l,Andy-lb,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Oct 8 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
liuyu205
liuyu205
Oct 8 Comments:

compile

likedislike
liuyu205liuyu205
Oct 8 Pre merge succeeded (commit_id: ba11952d658c5eacf2ee073924e396a1f414ff02)
CANN-robot
CANN-robotCollaborators
Oct 8 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 8 Added label: ci-pipeline-running
liuyu205liuyu205
Oct 8 Associated issue: [Bug-Report|缺陷反馈]:cube_nbuffer_merge合图不符合要求
liuyu205liuyu205
Oct 8 Deleted associated issue: [Bug-Report|缺陷反馈]:cube_nbuffer_merge合图不符合要求
liuyu205liuyu205
Oct 8 Associated issue: [Bug-Report|缺陷反馈]: if 分支合并类型不一致被静默降级为 NoneType,报出误导性的 "potentially undefined variable" 错误
liuyu205
liuyu205
Oct 8 Comments:

compile

likedislike
CANN-robot
CANN-robotCollaborators
Oct 8 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 8 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 8 Added label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Oct 8 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Oct 8 Added label: ci-pipeline-passed
liuyu205
liuyu205
Oct 9 Comments:

compile

likedislike
CANN-robot
CANN-robotCollaborators
Oct 9 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 9 Removed label: ci-pipeline-passed
CANN-robotCANN-robotCollaborators
Oct 9 Added label: ci-pipeline-running
liuyu205
liuyu205
Oct 9 Comments:

compile

likedislike
liuyu205liuyu205
Oct 9 Pre merge succeeded (commit_id: 7d8d00c55c4cb49bc58dcb2880a9ff0b52e9b504)
CANN-robot
CANN-robotCollaborators
Oct 9 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 9 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 9 Added label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Oct 9 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
Oct 9 Added label: ci-pipeline-passed
liulun0308
liulun0308Collaborators
Oct 9 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Oct 9 Added label: approved
gaoxiang618
gaoxiang618Collaborators
Oct 9 Comments:

/lgtm
/approve

likedislike
CANN-robot
CANN-robotCollaborators
Oct 9 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: gaoxiang618

likedislike
CANN-robotCANN-robotCollaborators
Oct 9 Added label: lgtm
CANN-robotCANN-robotCollaborators
Oct 9 Merged pull request