| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(pass): Split token in ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5537 merge 0819_token into master feat(pass): Split token in ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: token有tensor graph->tile graph的转化 See merge request: cann/pypto!5537 | 3 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
feat(pypto_pro): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 3 个月前 | |
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 个月前 | |
fix(ir): Update valueDependDescDict in CurrentDynamicFunction Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !4879 merge fix/ir-value-depend-current-dynamic-function into master fix(ir): Update valueDependDescDict in CurrentDynamicFunction Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 修复新 IR 路径下 valueDependDescDict 没有写入 dynamic function 的问题。 Changes: - 把SetCurrentDynamicFunction(),从 FinalizeDynamicFunction 提前到 createRootFunction。 - FinalizePathFunc/PathFunc 阶段, 在 MakeOutcasts 后生成 valueDepend 信息 See merge request: cann/pypto!4879 | 4 个月前 | |
feat(ir): Connect IR with pass component Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !4596 merge 0702_new_ir into master feat(ir): Connect IR with pass component Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 将新IR接入pass,同时修复新IR构造rootFunction时丢失op attr的问题 See merge request: cann/pypto!4596 | 4 个月前 | |
fix(ir): Machine depends incast/outcast not share same slot Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5474 merge incastlink into master fix(ir): Machine depends incast/outcast not share same slot Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5474 | 3 个月前 | |
fix(ir): Machine depends incast/outcast not share same slot Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5474 merge incastlink into master fix(ir): Machine depends incast/outcast not share same slot Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5474 | 3 个月前 | |
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 个月前 | |
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 个月前 | |
feat(pass): Split token in ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5537 merge 0819_token into master feat(pass): Split token in ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: token有tensor graph->tile graph的转化 See merge request: cann/pypto!5537 | 3 个月前 | |
feat(pass): Split token in ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5537 merge 0819_token into master feat(pass): Split token in ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: token有tensor graph->tile graph的转化 See merge request: cann/pypto!5537 | 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): 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 个月前 | |
fix(tensor): Calculate data size from data type bits Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5044 merge fix-tensor-data-size-bits into master fix(tensor): Calculate data size from data type bits Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: fix(tensor): Calculate packed tensor data size by bits 新增 DataSizeOf,统一根据元素数量和数据类型的 bit 位宽计算实际存储大小: 将 LogicalTensor、RawTensor、DeviceTensor 及 workspace 相关计算统一切换到 DataSizeOf,避免使用 BytesOf 时将 4-bit 元素按 1 byte 计算。 See merge request: cann/pypto!5044 | 4 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
refactor(utils): Refactor file_utils.h Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !4130 merge refactor/file_utils1 into master refactor(utils): Refactor file_utils.h Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Refactor file_utils.h Related Issue: #1185 See merge request: cann/pypto!4130 | 5 个月前 | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 个月前 | |
feat(interface): Support getinputdata for all integral types Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2224 merge refactor/deadcode into master feat(interface): Support getinputdata for all integral types Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. startArgsSymbolHandlerList of devProg does not used any more 2. Support getinputdata for all integral types Related Issue: [#408](https://gitcode.com/cann/pypto/issues/408) See merge request: cann/pypto!2224 | 7 个月前 | |
# feat(ir): Add remove_redundant_token_pass Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5463 merge add_token_pass_0815 into master # feat(ir): Add remove_redundant_token_pass Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 InferTokenPass 推导Token依赖时是保守的:只要两个算子之间**可能**存在别名/读写冲突,就会挂一条Token边。这会让IR里残留很多实际不必要的依赖边,过度串行化IR,限制后续调度/代码生成阶段的优化空间。 ## 本次改动 新增RemoveRedundantTokenPass,在InferTokenPass建好保守的Token依赖之后运行,消除输入侧冗余Token依赖,并清理输出侧不再被任何人消费的result_token_。在jit中通过create_new_logical_tensor使能token相关功能。 ## Token删除原则 Pass只处理READ/WRITE两类Token,且在每个SeqStmts作用域内独立、反复删除,直到没有Token可以继续优化为止(跨If/For/While边界的Token当前暂不删除)。删除逻辑分三类,另有一套删除后的依赖补偿机制: ### 一、已有其他依赖路径,当前token可删 若producer到consumer之间,除当前token外已经存在数据依赖或其他token依赖,当前token不再提供额外的执行顺序约束,直接删除。 实现链路:IsReachable()检查是否存在替代依赖路径 → DependsOn()判断数据结果或其他token是否构成依赖 → 确认可达后由TryRemoveOneToken()从consumer.tokens中删除。 ### 二、访问区域互不重叠,token可删 若当前token是READ或WRITE类型,且producer与consumer对同一底层RawTensor的相关访问区域能够证明不重叠,则两者不存在内存冲突,token可删除。 判断规则: - WRITE token:producer的写区域必须与consumer的读、写区域**均**不重叠; - READ token:producer的读区域必须与consumer的写区域不重叠; - 任意一个维度满足lhs.offset + lhs.shape <= rhs.offset或反向关系,即可证明两个多维区域不相交;动态shape/offset无法化简成确定布尔结果时保守地不删除;RawTensor、维数,或token与访问区域数量无法一一对应时也不删除。 - View:读区域取ViewOpAttribute的源offset,shape用view结果的shape;Assemble:写区域取AssembleOpAttribute的目标offset,shape用源tensor的shape。 此外还要求consumer的输出没有被非TensorOpStmt的其他语句直接引用(HasExternalUse()),否则即便访问区域不重叠也保留该token。 (相关实现:GetReadRegions() / GetWriteRegions()提取访问区域,ProveDisjoint()证明区域不重叠,AccessesAreDisjoint()按token类型检查访问冲突。) ### 三、已经没有使用者的结果token,直接清理 前两类优化完成后,TokenUseCollector再遍历整棵IR,收集仍被使用(出现在args_/tokens_中)的token;UnusedResultTokenRemover删除未被使用的result_token_,同时清空LogicalTensor中关联的readToken/writeToken,避免悬空引用。 ### 四、删除后的依赖补偿 第二类(区域不重叠)场景删除token时,还需要维护依赖关系:把producer自身依赖的前驱token补到consumer上,防止依赖链被截断;若consumer的后继节点依赖consumer,则把被删除的token补到后继节点上,维持下游约束。第一类(已有替代路径)场景无需补偿——替代路径本身已经承载了原有的顺序约束。 ### 五、核心原则 只有在token不再提供独立的顺序约束,或者能确定相关内存访问互不冲突时才删除;无法证明安全时一律保留。最后清理所有无使用者的输出token。只有Token列表实际发生变化的TensorOpStmt会被重建,其余语句原样返回。 ## 复杂度 设N为单个SeqStmts内的TensorOp数量,整体复杂度为稀疏图O(N^2)、稠密图最坏O(N^3)。原因:删除调度按consumer正向单遍处理(一次删除只影响当前consumer及其后继,不影响已处理完的前驱,故无需从头重扫),配合一次性构建的ProducerMap把producer查询降到平均常数级、可达性检查只沿真实依赖边传播,三者共同把复杂度从朴素做法(每删一个Token全局重扫 + 反向查producer + 枚举节点对判可达,常见O(N^3)、最坏O(N^4))降低了一个量级。 See merge request: cann/pypto!5463 | 3 个月前 | |
# feat(ir): Add remove_redundant_token_pass Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5463 merge add_token_pass_0815 into master # feat(ir): Add remove_redundant_token_pass Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 InferTokenPass 推导Token依赖时是保守的:只要两个算子之间**可能**存在别名/读写冲突,就会挂一条Token边。这会让IR里残留很多实际不必要的依赖边,过度串行化IR,限制后续调度/代码生成阶段的优化空间。 ## 本次改动 新增RemoveRedundantTokenPass,在InferTokenPass建好保守的Token依赖之后运行,消除输入侧冗余Token依赖,并清理输出侧不再被任何人消费的result_token_。在jit中通过create_new_logical_tensor使能token相关功能。 ## Token删除原则 Pass只处理READ/WRITE两类Token,且在每个SeqStmts作用域内独立、反复删除,直到没有Token可以继续优化为止(跨If/For/While边界的Token当前暂不删除)。删除逻辑分三类,另有一套删除后的依赖补偿机制: ### 一、已有其他依赖路径,当前token可删 若producer到consumer之间,除当前token外已经存在数据依赖或其他token依赖,当前token不再提供额外的执行顺序约束,直接删除。 实现链路:IsReachable()检查是否存在替代依赖路径 → DependsOn()判断数据结果或其他token是否构成依赖 → 确认可达后由TryRemoveOneToken()从consumer.tokens中删除。 ### 二、访问区域互不重叠,token可删 若当前token是READ或WRITE类型,且producer与consumer对同一底层RawTensor的相关访问区域能够证明不重叠,则两者不存在内存冲突,token可删除。 判断规则: - WRITE token:producer的写区域必须与consumer的读、写区域**均**不重叠; - READ token:producer的读区域必须与consumer的写区域不重叠; - 任意一个维度满足lhs.offset + lhs.shape <= rhs.offset或反向关系,即可证明两个多维区域不相交;动态shape/offset无法化简成确定布尔结果时保守地不删除;RawTensor、维数,或token与访问区域数量无法一一对应时也不删除。 - View:读区域取ViewOpAttribute的源offset,shape用view结果的shape;Assemble:写区域取AssembleOpAttribute的目标offset,shape用源tensor的shape。 此外还要求consumer的输出没有被非TensorOpStmt的其他语句直接引用(HasExternalUse()),否则即便访问区域不重叠也保留该token。 (相关实现:GetReadRegions() / GetWriteRegions()提取访问区域,ProveDisjoint()证明区域不重叠,AccessesAreDisjoint()按token类型检查访问冲突。) ### 三、已经没有使用者的结果token,直接清理 前两类优化完成后,TokenUseCollector再遍历整棵IR,收集仍被使用(出现在args_/tokens_中)的token;UnusedResultTokenRemover删除未被使用的result_token_,同时清空LogicalTensor中关联的readToken/writeToken,避免悬空引用。 ### 四、删除后的依赖补偿 第二类(区域不重叠)场景删除token时,还需要维护依赖关系:把producer自身依赖的前驱token补到consumer上,防止依赖链被截断;若consumer的后继节点依赖consumer,则把被删除的token补到后继节点上,维持下游约束。第一类(已有替代路径)场景无需补偿——替代路径本身已经承载了原有的顺序约束。 ### 五、核心原则 只有在token不再提供独立的顺序约束,或者能确定相关内存访问互不冲突时才删除;无法证明安全时一律保留。最后清理所有无使用者的输出token。只有Token列表实际发生变化的TensorOpStmt会被重建,其余语句原样返回。 ## 复杂度 设N为单个SeqStmts内的TensorOp数量,整体复杂度为稀疏图O(N^2)、稠密图最坏O(N^3)。原因:删除调度按consumer正向单遍处理(一次删除只影响当前consumer及其后继,不影响已处理完的前驱,故无需从头重扫),配合一次性构建的ProducerMap把producer查询降到平均常数级、可达性检查只沿真实依赖边传播,三者共同把复杂度从朴素做法(每删一个Token全局重扫 + 反向查producer + 枚举节点对判可达,常见O(N^3)、最坏O(N^4))降低了一个量级。 See merge request: cann/pypto!5463 | 3 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
test(ir): Add text check for test_merge_pass Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5209 merge ir into master test(ir): Add text check for test_merge_pass Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. support name propgration 2. fix some determine issue 3. add text check for test_merge_pass 4. fix gcov for python ut 5. remove python/pypto/ir folder Related Issue: #2559 See merge request: cann/pypto!5209 | 3 个月前 | |
fix(ir): Machine depends incast/outcast not share same slot Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5474 merge incastlink into master fix(ir): Machine depends incast/outcast not share same slot Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5474 | 3 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
fix(ir): Fix qat slot error Co-authored-by: zhuqingbo<zhuqingbo@huawei.com> # message auto-generated for no-merge-commit merge: !5211 merge aa into master fix(ir): Fix qat slot error Created-by: gcw_zcOFYzUr Commit-by: zhuqingbo Merged-by: cann-robot Description: 解决输入params做为for iterArgs的initvalue时,slot错误的问题 See merge request: cann/pypto!5211 | 3 个月前 | |
fix(ir): Fix qat slot error Co-authored-by: zhuqingbo<zhuqingbo@huawei.com> # message auto-generated for no-merge-commit merge: !5211 merge aa into master fix(ir): Fix qat slot error Created-by: gcw_zcOFYzUr Commit-by: zhuqingbo Merged-by: cann-robot Description: 解决输入params做为for iterArgs的initvalue时,slot错误的问题 See merge request: cann/pypto!5211 | 3 个月前 | |
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 个月前 | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 个月前 | |
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 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 5 个月前 | ||
| 7 个月前 | ||
| 7 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 3 个月前 |