| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(interface): Fix log wording and unify logging interface Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !5764 merge pr_log_fix_ut into master fix(interface): Fix log wording and unify logging interface Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 在 CANN 日志质量评测中发现 framework/src/interface 及 python/src/bindings 多处日志问题:部分日志文案存在英文拼写错误或语法错误,影响排障时按关键字检索;部分业务代码绕过统一日志接口,直接使用 std::cout / std::cerr / printf / py::print / fprintf 输出,不符合统一日志规范(3.1.9 统一英文、3.1.10 统一日志接口)。本 PR 在不改变任何计算逻辑的前提下,对上述日志问题统一收敛修复。 See merge request: cann/pypto!5764 | 2 个月前 | |
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): Select merged valid_shape by branch condition Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5840 merge fix/phi-shape into master fix(ir): Select merged valid_shape by branch condition Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5840 | 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(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 个月前 | |
fear(ir): Keep every assemble version of one slot as outcast output Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6386 merge ass_9.2 into 9.2.0 fear(ir): Keep every assemble version of one slot as outcast output Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6386 | 2 个月前 | |
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): Attach tile-graph tokens from source op during ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5755 merge 0828_tokenfinal into master feat(pass): Attach tile-graph tokens from source op during ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: token expandfunction代码重构,泛化实现方式 See merge request: cann/pypto!5755 | 2 个月前 | |
feat(pass): Attach tile-graph tokens from source op during ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5755 merge 0828_tokenfinal into master feat(pass): Attach tile-graph tokens from source op during ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: token expandfunction代码重构,泛化实现方式 See merge request: cann/pypto!5755 | 2 个月前 | |
fix(tensor): clarify view rank mismatch assert message Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !6606 merge 9.2.0 into 9.2.0 fix(tensor): clarify view rank mismatch assert message Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: ## 背景 PyPTO 编译期/运行时报错信息缺少源码定位与修复建议(11 算子批次共性问题的最高成本项)。其中报错点 1: pypto.view 做 rank 变化(4D→5D、2D→3D)时,F21003 断言仅输出裸数字: text ASSERT FAILED: ErrCode: F21003! Enum: FeError::INVALID_VAL Their sizes actually are 4 and 5 不说明"谁的 4、谁的 5"、不说 view 不支持改 rank、无修复建议,agent/用户单次定位耗时 5–20 分钟。 ## 改动概览 1 file changed, 2 insertions(+), 1 deletion(-) | 文件 | 位置 | 改动 | |---|---|---| | framework/src/interface/tensor/logical_tensor.cpp | GetViewValidShape() :558 | 重写 FE_ASSERT 消息体(旧文案 "Their sizes actually are N and M" 为全仓唯一触发点) | **断言条件、错误码(F21003)、抛异常机制、控制流均未改动**,纯诊断信息增强,行为零变化。 修改后消息: text View rank mismatch: input tensor rank is 4, view shape rank is 5. pypto.view cannot change tensor rank; use pypto.unsqueeze to add a dimension. See merge request: cann/pypto!6606 | 2 个月前 | |
fix(ir): Select merged valid_shape by branch condition Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5840 merge fix/phi-shape into master fix(ir): Select merged valid_shape by branch condition Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5840 | 2 个月前 | |
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 3 个月前 | |
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 3 个月前 | |
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 个月前 | |
fix(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !6523 merge 9.2.0 into 9.2.0 fix(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: ## 背景 CodeCheck代码规范缺陷列表,共 3 个检查任务、去重后 13 处缺陷、9 个文件(C/C++ 双扫导致的重复项已合并)。 ## 改动概览 涉及模块: framework/src/interface/{utils,tensor,function}、python/src/bindings ## 已修复项 | 规范 | 文件 | 修复方式 | |---|---|---| | G.FMT.17-CPP | torch_tensor_converter.cpp | 删除返回值判断前的多余空行 | | G.CNS.02-CPP | symbolic_scalar_simplify.h | magic number 4/2/3 → 0x4/2/3 | | G.CNS.02-CPP | function.cpp | magic number 62 → 具名常量 | | G.CNS.02-CPP | controller.cpp | magic number 2 → 0x2 | | G.PRE.09 | rebuildable_attribute.h | 宏末尾去除分号(调用处已带分号,3 处调用已验证) | | G.EXP.09-CPP | symbolic_scalar.cpp | 递归 lambda 变量声明即初始化 | See merge request: cann/pypto!6523 | 2 个月前 | |
feat(machine): Support host ctrlflow cache by jit Co-authored-by: qq_52905393<liuzhen180@huawei.com> # message auto-generated for no-merge-commit merge: !5741 merge dev-host-ctrl-jit into master feat(machine): Support host ctrlflow cache by jit Created-by: qq_52905393 Commit-by: qq_52905393 Merged-by: cann-robot Description: 1、支持通过 jit ready_on_host_tensors 配置 npu_name: cpu_name 传入配对关系,算子 kernel 传入值依赖 tensor 对应的 cpu tensor 2、支持传入值依赖 tensor 场景下在 host 侧做 controlflow cache See merge request: cann/pypto!5741 | 2 个月前 | |
feat(interpreter): Symbolicscalar add RuntimeTernaryOP Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6638 merge 9.2.0 into 9.2.0 feat(interpreter): Symbolicscalar add RuntimeTernaryOP Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. symbolicscalar新增RuntimeTernaryOP 2. A5 mix cv之间传数据增加reshape的op See merge request: cann/pypto!6638 | 2 个月前 | |
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(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !6523 merge 9.2.0 into 9.2.0 fix(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: ## 背景 CodeCheck代码规范缺陷列表,共 3 个检查任务、去重后 13 处缺陷、9 个文件(C/C++ 双扫导致的重复项已合并)。 ## 改动概览 涉及模块: framework/src/interface/{utils,tensor,function}、python/src/bindings ## 已修复项 | 规范 | 文件 | 修复方式 | |---|---|---| | G.FMT.17-CPP | torch_tensor_converter.cpp | 删除返回值判断前的多余空行 | | G.CNS.02-CPP | symbolic_scalar_simplify.h | magic number 4/2/3 → 0x4/2/3 | | G.CNS.02-CPP | function.cpp | magic number 62 → 具名常量 | | G.CNS.02-CPP | controller.cpp | magic number 2 → 0x2 | | G.PRE.09 | rebuildable_attribute.h | 宏末尾去除分号(调用处已带分号,3 处调用已验证) | | G.EXP.09-CPP | symbolic_scalar.cpp | 递归 lambda 变量声明即初始化 | See merge request: cann/pypto!6523 | 2 个月前 | |
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(operation): Fix validshape of cat not correct Co-authored-by: lidongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6289 merge cat_9.2 into 9.2.0 fix(operation): Fix validshape of cat not correct Created-by: tsungl4 Commit-by: lidongsheng Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6289 | 2 个月前 | |
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 个月前 | |
fear(ir): Keep every assemble version of one slot as outcast output Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6386 merge ass_9.2 into 9.2.0 fear(ir): Keep every assemble version of one slot as outcast output Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6386 | 2 个月前 | |
fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !6120 merge scatterupdate-inplace-9.2.0 into 9.2.0 fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol Sync of #6028 (merged to master) to release branch 9.2.0. ScatterUpdate returned a new tensor while leaving dst unchanged, which broke inplace semantics and lost dst ARG symbol in codegen when the src slot (nameless inplace-view SSA) took over dst registration. Changes: - Change ScatterUpdate dst parameter to a mutable reference and assign result back to dst so the caller-side tensor reflects the update - Register input names at param-declaration time via the new TensorSlotManager::MarkInputName (called in RootFunctionBuilder::InitDynFunc and RecordFunc::RecordDynFuncInner), so inputNameList keeps the original ARG symbols before any SetSameSlot migration - Keep slot marking and startArgs fill in BuildDynSlotScope unchanged - Register pypto.scatter_update in _patch_methods so inplace slot tracking covers it Related Issues: #3260 See merge request: cann/pypto!6120 | 2 个月前 | |
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 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 5 个月前 | ||
| 7 个月前 | ||
| 7 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 4 个月前 |