| Files | Last commit | Last update |
|---|---|---|
revert: 恢复 rebase 误带入的 origin/dev 杂质文件至主干版本 rebase 提交 47625ae0f 将 origin/dev 内容带入 dev_wsh,混入 15 个与 convbp 开发无关的文件。 对照 dev_backup_0824 真实改动范围排查,恢复至 origin/master 版本,避免合入主干时引入差异。 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
fix(ir): Fix store python object in pypto.loop Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5245 merge ir into master fix(ir): Fix store python object in pypto.loop Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Pyhton object which can't translate to irnode, should be execlude from iter_args and yield values Related Issue: #2559 See merge request: cann/pypto!5245 | 3 months ago | |
feat(ir): Make assemble mark_store controllable via runtime switch Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5591 merge revert_ops into master feat(ir): Make assemble mark_store controllable via runtime switch Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 pil/ops.py 中 assemble 的 Block.mark_store 此前为全局无条件调用,无法按场景关闭,影响 LogicalTensor 版本生成的灵活性。 ## 改动内容 - **开关控制**:ops.py 中 assemble 的 mark_store 改为仅在 assemble_new_logical_tensor() 返回 True 时执行,实现运行时开关 - **新增接口**:builder.cpp / ir.pyi 新增 assemble_new_logical_tensor() getter,与已有的 set_assemble_new_logical_tensor() 配套 - **UT 同步**:run_merge_pass 默认 create_new_logical_tensor=True, 移除测试中冗余的显式传参,重新生成 8 个 merge_pass golden 文件 See merge request: cann/pypto!5591 | 3 months ago | |
feat(ir): Make assemble mark_store controllable via runtime switch Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5591 merge revert_ops into master feat(ir): Make assemble mark_store controllable via runtime switch Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 pil/ops.py 中 assemble 的 Block.mark_store 此前为全局无条件调用,无法按场景关闭,影响 LogicalTensor 版本生成的灵活性。 ## 改动内容 - **开关控制**:ops.py 中 assemble 的 mark_store 改为仅在 assemble_new_logical_tensor() 返回 True 时执行,实现运行时开关 - **新增接口**:builder.cpp / ir.pyi 新增 assemble_new_logical_tensor() getter,与已有的 set_assemble_new_logical_tensor() 配套 - **UT 同步**:run_merge_pass 默认 create_new_logical_tensor=True, 移除测试中冗余的显式传参,重新生成 8 个 merge_pass golden 文件 See merge request: cann/pypto!5591 | 3 months ago | |
feat(pass): Add slice contract feature for pass with some cases Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !5568 merge slice5close into master feat(pass): Add slice contract feature for pass with some cases Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: PR描述 1.背景 历史实现中,OP_VIEW 和 OP_ASSEMBLE 同时承担两类语义: 视图转换语义:描述 tensor 的 shape、offset、dyn offset、dyn valid shape 等逻辑视图关系。 搬运语义:在 tile graph 后段被 GenerateMoveOp 转换为 copy in / copy out 等真实搬运操作。 本需求将这两类语义拆开: OP_VIEW / OP_ASSEMBLE:保留为视图语义,表达逻辑视图关系。 OP_SLICE / OP_CONTRACT:表达搬运语义,分别对应原 copy in 方向和 copy out 方向的 tile 级搬运描述。 在 ExpandFunction 阶段,原先需要展开的 VIEW/ASSEMBLE 会被展开为 tile 级的 SLICE/CONTRACT。后续 tile graph pass 不能再默认 VIEW/ASSEMBLE 一定会生成真实搬运,而需要按新语义区分: 优化、合并、图结构分析类 pass 需要识别 view-like 和 assemble-like 两组 opcode。 内存推导和 move 生成类 pass 应以 SLICE/CONTRACT 作为真实搬运入口。 本设计覆盖 PVC2_OOO 策略中从 MergeViewAssemble 到 GenerateMoveOp 的相关 pass。 2.. 目标与非目标 2.1 目标 支持 ExpandFunction 后图中出现 OP_SLICE/OP_CONTRACT,并保证后续 pass 能正确识别、合并、拆分、分区和生成 move op。 将原来依赖 OP_VIEW/OP_ASSEMBLE 的搬运逻辑迁移到 OP_SLICE/OP_CONTRACT。 保留 OP_VIEW/OP_ASSEMBLE 的视图表达能力,避免把纯视图语义误转成 copy。 保持现有 offset、dyn offset、dyn valid shape、scope、atomic RMW 属性等关键信息在 pass 改写中正确传递。 兼容原有 pass 中 view/assemble 链路优化能力,使其覆盖 slice/contract 场景。 2.2 非目标 不改变用户侧 API 的 view/assemble 表达方式。 不改变 copy op 的最终执行语义。 不在 GenerateMoveOp 中继续把普通 OP_VIEW/OP_ASSEMBLE 当作搬运入口。 不引入新的 attribute 类型;OP_SLICE 复用 ViewOpAttribute,OP_CONTRACT 复用 AssembleOpAttribute。 2.3 相关验证 MergeViewAssemble UT:覆盖 view-view、slice-view、view-slice、assemble-contract 等链路合并,验证合并后 opcode 和 attribute 正确。 SplitReshape UT:覆盖 contract -> reshape -> slice、reduce_acc 前驱跳过、动态 shape 变轴跳过。 SplitLargeFanoutTensor UT:覆盖大 fanout 中 assemble-like producer 和 view-like consumer 的拆分、offset 更新和冗余删除。 AssignMemoryType UT:覆盖 slice/contract 的 original、requirement、convert 改写、LiteNPU reshape 特殊路径。 RemoveRedundantOp UT:覆盖 view/assemble-like perfect match、partial match、multi-contract-single-slice、single-contract-multi-slice。 ProcessAtomic UT:覆盖 AtomicRMW 属性下沉到 contract、offset 累加、VecDup 分支删除。 GraphPartition 与 IntraSubgraphAdapter UT:覆盖跨子图边界插入 slice/contract,以及 legacy view/assemble memory 不一致时的原地改写。 GenerateMoveOp UT:验证 OP_SLICE/OP_CONTRACT 正确生成 copy in/out,且普通 OP_VIEW/OP_ASSEMBLE 不再作为 move 入口。 See merge request: cann/pypto!5568 | 3 months ago | |
fix(ir): Fix liveness not correct in canonicalize pass Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5334 merge shape into master fix(ir): Fix liveness not correct in canonicalize pass Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5334 | 3 months ago | |
fix(ir): Fix liveness not correct in canonicalize pass Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5334 merge shape into master fix(ir): Fix liveness not correct in canonicalize pass Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5334 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
fix(ir): Add TENSOR_ALLOC op Co-authored-by: zhuqingbo<zhuqingbo@huawei.com> # message auto-generated for no-merge-commit merge: !4992 merge aa into master fix(ir): Add TENSOR_ALLOC op Created-by: gcw_zcOFYzUr Commit-by: zhuqingbo Merged-by: cann-robot Description: 针对tensor创建添加TENSOR_ALLOC op See merge request: cann/pypto!4992 | 4 months ago | |
feat(IR): frontend pass output new format IR Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5459 merge normalize-ir-compare into master feat(IR): frontend pass output new format IR Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): frontend pass output new format IR See merge request: cann/pypto!5459 | 3 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
feat(ir): Make assemble mark_store controllable via runtime switch Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5591 merge revert_ops into master feat(ir): Make assemble mark_store controllable via runtime switch Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 pil/ops.py 中 assemble 的 Block.mark_store 此前为全局无条件调用,无法按场景关闭,影响 LogicalTensor 版本生成的灵活性。 ## 改动内容 - **开关控制**:ops.py 中 assemble 的 mark_store 改为仅在 assemble_new_logical_tensor() 返回 True 时执行,实现运行时开关 - **新增接口**:builder.cpp / ir.pyi 新增 assemble_new_logical_tensor() getter,与已有的 set_assemble_new_logical_tensor() 配套 - **UT 同步**:run_merge_pass 默认 create_new_logical_tensor=True, 移除测试中冗余的显式传参,重新生成 8 个 merge_pass golden 文件 See merge request: cann/pypto!5591 | 3 months ago | |
revert: 恢复 rebase 误带入的 origin/dev 杂质文件至主干版本 rebase 提交 47625ae0f 将 origin/dev 内容带入 dev_wsh,混入 15 个与 convbp 开发无关的文件。 对照 dev_backup_0824 真实改动范围排查,恢复至 origin/master 版本,避免合入主干时引入差异。 | 3 months ago | |
fix(ir): Support get_tensor_data Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5466 merge tensor_data into master fix(ir): Support get_tensor_data Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5466 | 3 months ago | |
feat(ir): Infer read and write tokens in tensor graphs Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5402 merge add_token_0810_2 into master feat(ir): Infer read and write tokens in tensor graphs Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 为 Tensor Graph 增加前端 Token 推导能力,保证共享同一个 RawTensor 的 LogicalTensor 之间具有正确的内存访问依赖。 主要修改: - 将 TensorOpStmt 的 result_token 从单个 Token 改为 Token 列表 - 适配 IR Builder、Visitor、Mutator、Printer、Verifier、Python Binding 和 DCE 等相关模块 - 增加 NORMAL、READ 和 WRITE 三种 Token 类型 - 为 TensorOp 自动推导 Read Token 和 Write Token - 同一个 RawTensor 连续多次读取时复用最新的 Read Token - 为WAR、WAW、RAW场景建立 Token 依赖 - 支持 Token 状态在 IfStmt 和 ForStmt 控制流中的传递与合并 - SSA 校验允许共享的 Read Token 被重复定义 - 增加顺序执行和控制流场景的 C++、Python 测试 See merge request: cann/pypto!5402 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago |