| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(ir): Prefer Static Shape For Overlap Analysis Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5937 merge fix/remove-redundant-token-overlap into master fix(ir): Prefer Static Shape For Overlap Analysis Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 复 overlap 分析错误串行化非重叠 assemble 描述: 问题背景: 当 Tensor 同时存在静态 shape 和 dynamic valid shape 时,overlap 分析统一使 用 dynamic valid shape,导致静态 shape 已能证明不重叠的 assemble 被错误地串 行化。 变更内容: - 静态维度优先使用 shape - 仅对 shape 为 -1 的维度使用 dynamic valid shape - 新增四次连续非重叠 assemble 的 UT - 增加回退旧逻辑时的失败验证 See merge request: cann/pypto!5937 | 2 个月前 | |
feat(ir): Always create new logical_tensor during assemble Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5297 merge add_token_infer_pass_0805 into master feat(ir): Always create new logical_tensor during assemble Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 1. 在MakeOutCast时,将所有内部tensor的旧rawtensor替换为新rawtensor,避免在多次assmble时,输出tensor的rawtensor不一致 2. 在dce时,如果logicaltensor对应的memoryId有消费者,不删除logicaltensor 3. 对于不能删除的TensorOp,其result_token不强制保留 4. 移除assmeble接口中添加token,后续统一添加token,方便token的命名统一 5. 增加create_new_logical_tensor开关,使能assmeble创建新的logicaltensor See merge request: cann/pypto!5297 | 3 个月前 | |
feat(ir): Support versioned assemble outputs Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5787 merge frontend_assemble_restore into master feat(ir): Support versioned assemble outputs Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 旧版前端中,连续多次 assemble 写入同一 destination 时会复用同一个 LogicalTensor。这种表达无法区分不同写入产生的逻辑版本,因此中间读取 难以准确引用第 N 次写入后的快照,并可能观察到后续写入的值。 为配合新版 IR assemble 语义及 token 访存时序,本 PR 完成前端侧适配: 每次用户可见的 assemble 写入生成独立的 LogicalTensor 版本,同时继续 共享同一个底层 RawTensor。 ## 主要修改 - 调整 LogicalTensor::NextVersion: - 创建独立的 LogicalTensor; - 共享原有 RawTensor; - 完整复制 shape、offset、动态 shape、storage、memory type、自定义属性等逻辑元数据; - 将新版本注册到当前 Function 的 TensorMap; - 不再由版本创建过程生成 token,token 统一交由 TokenPass 推导。 - 调整 Function 构建与 outcast 处理: - 连续写入同一 RawTensor 时保留各次写入对应的逻辑版本; - 生成 Function outcast 时按 RawTensor 去重,并选择最新的 LogicalTensor 版本; - 增加稳定的轻量级排序模式,在满足依赖关系的同时尽量保持原始 op 顺序。 - 补充 token 依赖支持: - Function operation 排序纳入 ProducerOpsByToken 依赖; - 轻量级排序同时处理数据依赖和 token 依赖; - DCE 在新版 assemble 机制开启时保留推导出的 result token,供后续 token 清理 Pass 分析; - Operation 从 JSON 恢复时同步恢复输入、输出 token 信息。 - 增强相关基础逻辑: - 处理 LogicalTensor 自消费场景下的排序依赖; - 为 assemble shape 推导补充空操作数及维度不完整场景的保护。 ## 测试 - 新增 LogicalTensor::NextVersion 元数据继承测试; - 新增连续多次 assemble 共享同一 RawTensor、但生成不同 LogicalTensor 版本的测试; - 新增重复 assemble 后仅选择最新版本作为 outcast 的快照测试。 ## 影响范围 本 PR 仅包含新版 assemble/token 方案的前端及基础 IR 适配。 MergeDanglingAssembleOutput、TokenPass 的完整访存依赖计算,以及 RemoveRedundantReshape、MergeViewAssemble、GraphPartition、 OoOSchedule、GlobalMemoryReuse 等下游 Pass 的适配不在本 PR 的修改范围内。 See merge request: cann/pypto!5787 | 2 个月前 | |
feat(ir): Support versioned assemble outputs Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5787 merge frontend_assemble_restore into master feat(ir): Support versioned assemble outputs Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 旧版前端中,连续多次 assemble 写入同一 destination 时会复用同一个 LogicalTensor。这种表达无法区分不同写入产生的逻辑版本,因此中间读取 难以准确引用第 N 次写入后的快照,并可能观察到后续写入的值。 为配合新版 IR assemble 语义及 token 访存时序,本 PR 完成前端侧适配: 每次用户可见的 assemble 写入生成独立的 LogicalTensor 版本,同时继续 共享同一个底层 RawTensor。 ## 主要修改 - 调整 LogicalTensor::NextVersion: - 创建独立的 LogicalTensor; - 共享原有 RawTensor; - 完整复制 shape、offset、动态 shape、storage、memory type、自定义属性等逻辑元数据; - 将新版本注册到当前 Function 的 TensorMap; - 不再由版本创建过程生成 token,token 统一交由 TokenPass 推导。 - 调整 Function 构建与 outcast 处理: - 连续写入同一 RawTensor 时保留各次写入对应的逻辑版本; - 生成 Function outcast 时按 RawTensor 去重,并选择最新的 LogicalTensor 版本; - 增加稳定的轻量级排序模式,在满足依赖关系的同时尽量保持原始 op 顺序。 - 补充 token 依赖支持: - Function operation 排序纳入 ProducerOpsByToken 依赖; - 轻量级排序同时处理数据依赖和 token 依赖; - DCE 在新版 assemble 机制开启时保留推导出的 result token,供后续 token 清理 Pass 分析; - Operation 从 JSON 恢复时同步恢复输入、输出 token 信息。 - 增强相关基础逻辑: - 处理 LogicalTensor 自消费场景下的排序依赖; - 为 assemble shape 推导补充空操作数及维度不完整场景的保护。 ## 测试 - 新增 LogicalTensor::NextVersion 元数据继承测试; - 新增连续多次 assemble 共享同一 RawTensor、但生成不同 LogicalTensor 版本的测试; - 新增重复 assemble 后仅选择最新版本作为 outcast 的快照测试。 ## 影响范围 本 PR 仅包含新版 assemble/token 方案的前端及基础 IR 适配。 MergeDanglingAssembleOutput、TokenPass 的完整访存依赖计算,以及 RemoveRedundantReshape、MergeViewAssemble、GraphPartition、 OoOSchedule、GlobalMemoryReuse 等下游 Pass 的适配不在本 PR 的修改范围内。 See merge request: cann/pypto!5787 | 2 个月前 | |
fix(interface): Prevent dynamic kernel hash collision after reset Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5617 merge 0822_hash into master fix(interface): Prevent dynamic kernel hash collision after reset Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 将DYNAMIC类型的Function magic与其他function分开管理,并且在复跑时不复用,避免在这一层计算哈希时哈希冲突 See merge request: cann/pypto!5617 | 3 个月前 | |
feat(ir): Always create new logical_tensor during assemble Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5297 merge add_token_infer_pass_0805 into master feat(ir): Always create new logical_tensor during assemble Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 1. 在MakeOutCast时,将所有内部tensor的旧rawtensor替换为新rawtensor,避免在多次assmble时,输出tensor的rawtensor不一致 2. 在dce时,如果logicaltensor对应的memoryId有消费者,不删除logicaltensor 3. 对于不能删除的TensorOp,其result_token不强制保留 4. 移除assmeble接口中添加token,后续统一添加token,方便token的命名统一 5. 增加create_new_logical_tensor开关,使能assmeble创建新的logicaltensor See merge request: cann/pypto!5297 | 3 个月前 | |
feat(IR): Check or render the func builder Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5746 merge ir-compile-assert into master feat(IR): Check or render the func builder Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Check or render the func builder See merge request: cann/pypto!5746 | 3 个月前 | |
feat(IR): Check or render the func builder Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5746 merge ir-compile-assert into master feat(IR): Check or render the func builder Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Check or render the func builder See merge request: cann/pypto!5746 | 3 个月前 | |
feat(IR): Check or render the func builder Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5746 merge ir-compile-assert into master feat(IR): Check or render the func builder Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Check or render the func builder See merge request: cann/pypto!5746 | 3 个月前 | |
feat(IR): Check or render the func builder Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5746 merge ir-compile-assert into master feat(IR): Check or render the func builder Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Check or render the func builder See merge request: cann/pypto!5746 | 3 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
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 个月前 | |
fix(ir): Prefer Static Shape For Overlap Analysis Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5937 merge fix/remove-redundant-token-overlap into master fix(ir): Prefer Static Shape For Overlap Analysis Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 复 overlap 分析错误串行化非重叠 assemble 描述: 问题背景: 当 Tensor 同时存在静态 shape 和 dynamic valid shape 时,overlap 分析统一使 用 dynamic valid shape,导致静态 shape 已能证明不重叠的 assemble 被错误地串 行化。 变更内容: - 静态维度优先使用 shape - 仅对 shape 为 -1 的维度使用 dynamic valid shape - 新增四次连续非重叠 assemble 的 UT - 增加回退旧逻辑时的失败验证 See merge request: cann/pypto!5937 | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 2 个月前 |