| Files | Last commit | Last update |
|---|---|---|
fix(function): Parameterize COPY_OUT->RESHAPE outcast chain in COA normalize Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !5785 merge fix/subgraph-coa-outcast-copyout-chain into master fix(function): Parameterize COPY_OUT->RESHAPE outcast chain in COA normalize Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: 全动态 bmm 子图合并失败:outcast 登记在 RESHAPE/view-like 出口 op 上、且其输入全部由 COPY_OUT 生产时,会落入普通 NormalizeTensor(..., valueToIndex=false) 路径——只记录值不回写。COPY_OUT attr 里折叠的字面量 offset(如 n_idx*128 → 0/128/…)因此泄漏进 ComputeHashOrderless,导致 leaf hash 失配、子图不合并。 修复:新增与入口侧 IsInplaceIncast 对称的 IsOutcastCopyOutChain 检测,在 NormalizeCoaForOutCasts 增加 else-if 分支——参数化链首 COPY_OUT 的 attr,RESHAPE 出口 tensor 只记录不回写,使折叠 offset 进入 COA 参数表而非参与 hash。 See merge request: cann/pypto!5785 | 2 months ago | |
fix(ir): Preserve token dependencies for inplace operations Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5766 merge fix_inplace_op into master fix(ir): Preserve token dependencies for inplace operations Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: fix(ir): Preserve token dependencies for inplace operations PR 描述(中文): ## 问题背景 inplace 算子的输入与输出共享底层存储。原有 token 推导逻辑会为 inplace输入生成新的 read token,覆盖此前 reader 在输入 tensor 上保存的 read token,导致读后写(WAR)依赖无法正确传递。 在创建 root/hidden function 时,原始 tensor 会被本地 incast tensor 替换。如果没有同步 token 元数据,后续 Function 展开也无法识别该依赖。 ## 修改内容 - 识别与当前算子输出共享存储的 inplace 输入,不再为其生成新的 read token。 - 保留此前 reader 产生的 read token,并将其作为 inplace 写操作的 WAR依赖。 - 使用 inplace op 的 write token 表示其内部读写操作完成。 - 创建 hidden function 的 incast tensor 时,将原始 tensor 的 read/write token 复制到实际参与计算的本地 tensor。 - 更新 inplace token 相关 UT 的预期 IR。 ## 修改效果 修复以下依赖场景: - 普通读之后执行 inplace 写时,写操作正确等待此前的读 token。 - 连续 inplace 写之间保留正确的 WAW 依赖。 - 通过 alias 读取或写入时,依赖能够基于共享 storage 正确传播。 - 拆分 root/hidden function 后,token 元数据不会丢失。 See merge request: cann/pypto!5766 | 2 months ago | |
fix(machine): Replace cpp test of cellmatch bound to pytest Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !5648 merge duanhaotian8 into master fix(machine): Replace cpp test of cellmatch bound to pytest Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: 整改C++St用例 See merge request: cann/pypto!5648 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 3 months ago |