Pull Request has been successfully merged by CANN-robot.
(Thank you for liuyu205's contribution.)变更摘要
本 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_updatekwarg 的读取与「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_updatekwarg,新增 stride 缺少post_update=True时抛错的用例并调整 AddrRegNORM用例注释,test_vf_basic_ops.py的load_unalign调用去掉post_update=True。


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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/lgtm
/approve


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


Upload for load_unalign post delete