| Files | Last commit | Last update |
|---|---|---|
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(exported_custom_op): Add the minimal onnx demo pair and its system tests Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6778 merge v4_07_demos_minimal into master feat(exported_custom_op): Add the minimal onnx demo pair and its system tests Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: The minimal demo pair for the custom-op export flow, split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. add is the smallest single-op export, and build_so_and_setup_demo.py turns an exported .onnx into a placeable libcust_opapi.so. Between them they exercise every module of the support library added in #6780, which is what makes this the smallest useful demo set rather than an arbitrary subset. The demos sit under examples/03_advanced/exported_custom_op/, beside the other advanced examples, and import the library as exported_custom_op from <repo root>/tools. Changes: - Add examples/03_advanced/exported_custom_op/onnx/add/ — the five-file demo (kernel.py, op.py, model.py, plus the export_demo.py and run_demo.py entry points) and onnx/build_so_and_setup_demo.py, which builds the operator .so from an exported model and places it where ATC and GE find it - Add the system tests under tests/st/: test_build_so_loads.py proves the built .so is really loadable, and test_demo_sweep.py drives every demo's export and build stages as subprocesses, discovering demos by glob so a demo added later is swept the moment it lands - Extend examples/validate_examples.py's skip set: build_so_and_setup_demo.py consumes the previous step's output and cannot be run bare, and a demo's kernel.py, op.py and model.py are imported by its two entry points rather than launched. The collected count is unchanged for every pre-existing example - Depends on #6780: the demos reach the export session, the discovery logic and the .so build through the exported_custom_op package that PR introduces Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158), [#6780](https://gitcode.com/cann/pypto/merge_requests/6780) See merge request: cann/pypto!6778 | 1 month ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
fix(st): Rename NZ format matmul test to fix lost BASIC_TESTS parametrize Co-authored-by: chen-yongkang16<chenyongkang16@huawei.com> # message auto-generated for no-merge-commit merge: !7714 merge mod_test into master fix(st): Rename NZ format matmul test to fix lost BASIC_TESTS parametrize Created-by: chen-yongkang16 Commit-by: chen-yongkang16 Merged-by: cann-robot Description: Python 模块命名空间中后定义的函数直接覆盖了后面的同名函数,导致 BASIC_TESTS 整组基础矩阵乘用例在 pytest 中被彻底覆盖丢失. 关联issue:https://gitcode.com/cann/pypto/issues/3887 See merge request: cann/pypto!7714 | 3 days ago | |
refactor(dist): Fold window memory registration and connect into create_window Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7776 merge channel1 into master refactor(dist): Fold window memory registration and connect into create_window Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: The previous window setup required a strict 3-step protocol (create_window -> register_memory -> connect), which was easy to misuse: a temporary tensor passed to register_memory could be garbage-collected while the window still referenced its address, region names had to be kept identical across ranks by hand, a not-yet-connected window had to be rejected at launch time, and the jetty table was allocated and copied to device even when no region used the URMA plane (kernels never touch it there). This PR simplifies the flow to a single collective call and skips the useless jetty work. See merge request: cann/pypto!7776 | 2 days ago | |
fix simd tile tests | 22 hours ago | |
feat(exported_custom_op): Run declared operators on the simulator and device Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6150 merge v3_05b_run into master feat(exported_custom_op): Run declared operators on the simulator and device Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. Sits between #5602 and #5603 in the series: #5602 declares an operator and registers its torch op; this PR makes a declared operator executable on the environment simulator or a real device. **API surface map for this whole series — every def with its signature, introducing PR and callers:** https://claude.ai/code/artifact/a42e70ca-5cf9-4a67-8eb3-b7d3c8e17f1a Changes: - Add the run path: a thread-local run context ( pypto_run_context) routes each op to the simulator or a device; DIRECT kernels are re-wrapped for the requested run_mode, and an unsatisfiable environment raises RunEnvError rather than a stack trace. The run surface is opt-in: neither name is re-exported from the package __init__ — callers reach it as pypto.extensions.torch_custom_op.common.run, keeping run-only names off the export/deploy surface - Wire the torch op's dispatch to the run context: with an active context the op compiles and launches its declared kernel; without one it executes the torch_defn reference as before - Add the run-context unit tests and a simulator-numerics system test comparing kernel output against the torch reference; the existing declaration guards gain an autouse assertion that no run context is active, so they keep measuring the torch_defn path Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!6150 | 1 month ago | |
Initial commit | 10 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 | |
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(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
tests(machine): Migrate ST cases to UT and Python ST. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5649 merge ST into master tests(machine): Migrate ST cases to UT and Python ST. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: CPP ST 整改;部分删除;部分改成ut;部分重写成python st See merge request: cann/pypto!5649 | 3 months ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(Pass): Assume_divisible for dual_dst Co-authored-by: gggxinmeng<guoxinmeng@huawei.com> # message auto-generated for no-merge-commit merge: !5527 merge dualdst_dynvalidshape_2 into master feat(Pass): Assume_divisible for dual_dst Created-by: gggxinmeng Commit-by: gggxinmeng Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2858 # OoO阶段无法对动态validshape进行比较,导致dualdst使能失败 动态切分轴的逐 tile validShape 通常由编译器推导为: text min(max(rawShape - offset, 0), tileShape) 例如两个相邻半块可能分别得到: text min(max(vm, 0), TILE_M) min(max(vm - TILE_M, 0), TILE_M) InferDynShape::RecordStaticValidShapeOnL0CCopyUB 会在后续 InferShape 把 shape 归一化为动态表达式之前,将全 concrete 的 valid shape保存到 staticValidShape。但只要任意一维仍含动态成分,快照就整体跳过,DualDst 只能回退到动态表达式比较。 上述两个相邻半块的表达式 dump 不同,而且都没有 concrete 值,DynShapeEq 无法证明它们相等,因此 pair 识别失败。即使业务实际保证 vm 总是 TILE_M 的整数倍、两个半块运行时一定都是完整 tile,编译器仍然缺少这一事实。 根因不是 DualDst 搬运或 codegen 不支持,而是前端没有 Interface 表达“运行时标量可被 tile 整除”,编译期也就无法把逐 tile valid shape证明为静态满块。 # 方案目标 1. 允许用户显式声明某个运行时表达式一定能被指定 tile 整除; 2. 编译器依据该声明证明相关 validShape 恒等于完整 tile,并把它静态化; 3. 在 InferShape 归一化之前让 staticValidShape 快照命中,使现有 DualDst 识别和融合逻辑直接受益; 4. 融合后仅静态化切分轴,保留非切分轴原有 valid shape; 5. 在调试模式下生成运行时取模断言,帮助发现错误的用户声明; 6. 没有假设或证明条件不足时保留原动态表达式,不强行融合。 本方案解决的是“编译器缺少业务整除信息”的问题,而不是自动识别主块和尾块。它是一份由用户提供、编译器信任的语义契约。 # 总体设计 完整链路如下: text Python 用户代码 │ assume_divisible(expr, 128) ▼ Function 保存整除假设 │ expression -> {divisors} ▼ InferDynShape 证明 validShape 恒为 tile │ min/max/add/sub/mul + offset/cap 对齐证明 ▼ 动态 validShape -> 静态 tileShape │ 同步 Tensor 与需要保持一致的 Op attribute ▼ RecordStaticValidShapeOnL0CCopyUB │ 写入 staticValidShape ▼ 现有 DualDst 匹配与融合 │ 保留非切分轴的动态 validShape ▼ 现有 leaf / codegen / dev_encode / runtime 流程 调试模式 runtime_debug_mode=4: Function 中的显式假设 -> 生成 expr % divisor == 0 运行时断言 See merge request: cann/pypto!5527 | 2 months ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: yuxin5<yuxin5@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !6752 merge dev into master feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Created-by: yuxin5 Commit-by: Zehai;yuxin5;zhouxuan78;xutianlong1;royccc;hongyiliu111 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Add pypto.conv_backward_filter interface to compute the gradient of convolution with respect to the weight tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_filter frontend interface with parameter validation - Implement ConvBackwardFilter 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!6752 | 29 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
tests(machine): Migrate ST cases to UT and Python ST. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5649 merge ST into master tests(machine): Migrate ST cases to UT and Python ST. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: CPP ST 整改;部分删除;部分改成ut;部分重写成python st See merge request: cann/pypto!5649 | 3 months ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days 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(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
fix(pass): Fix nested-loop InferMultiIterOverlap and refine local-tensor create detection Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !6555 merge cell-resolve into master fix(pass): Fix nested-loop InferMultiIterOverlap and refine local-tensor create detection Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## Background(背景信息) 当前InferMultiIterOverlap PASS只考虑了最内层循环变量的判重,对于循环嵌套场景以及内部创建tensor的场景存在判定不精准的问题。 ## 算法更新 1. 增加每一轮PASS前的clear清空操作,避免多轮之间的影响。 2. 增加outcast过滤,局部非outcast应该直接跳过。 3. 由最内层向外层循环逐一检测重叠,每一层按照当前层的循环变量与步长校验,只有全部非重叠,才进行标记; 4. 额外增加内部创建判定,创建的标识统一以path的constructAssembleSlotList为主,识别到当前循环层创建,当前层直接判定非重叠。 ## 用例看护 新增python UT场景看护。 | # | 用例 | 场景 | 期望 IterNoOverlapWaw | |---|------|------|-------------------------| | 1 | test_assemble_disjoint_marked | 单层 loop,assemble 偏移 i*TILE 邻接 | 有 Mark:[6](i 对应 hiddenfunc) | | 2 | test_assemble_overlap_unmarked | 单层 loop,偏移 i*(TILE//2) 半窗重叠 | 空 | | 3 | test_nested_disjoint_marked | 嵌套 i/j,i*TILE / j*TILE_N 均邻接 | 有 Mark:[6](内层 j) | | 4 | test_nested_overlap_unmarked | 嵌套,列步长 j*(TILE_N//2) 重叠 | 空 | | 5 | test_fixed_offset_unmarked | 每轮 assemble 到固定 [0,0] | 空 | | 6 | test_same_idx_diff_step_attrs | 兄弟 loop 同 idx_name=i:半窗 / step=2 邻接 | 仅 DJ 侧 Mark:[16] | | 7 | test_nested_inner_immediate_offset_unmarked | 内层 j 不进 assemble 偏移(对 j 不变) | 空 | | 8 | test_nested_outer_overlap_inner_disjoint_unmarked | 外层半窗重叠、内层邻接(任一层失败) | 空 | | 9 | test_tensor_create_outer_inner_overlap_attrs | 外层 tensor(buf);内层半窗写 buf;buf→out 邻接 | 仅外层 Mark:[14] | | 10 | test_full_create_disjoint_marked | 每轮 full + assemble i*TILE 邻接 | 有 Mark:[3] | | 11 | test_tensor_create_outer_inner_disjoint_attrs | 外层 buf;内层 j*TILE 与 buf→out i*TILE 均邻接 | 双 Mark:[14] + [7] | | 12 | test_multiround_disjoint_then_overlap_clears_marks | 同进程 5×:disjoint→overlap,验 Infer ClearMarks | disjoint 同 #1;overlap 始终空 | See merge request: cann/pypto!6555 | 1 month ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days 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(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
fix(ir): Link RawTensor SSA versions to the same slot Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !7454 merge link_raw_tensor_ssa_slot into master fix(ir): Link RawTensor SSA versions to the same slot Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: **背景** 对同一个 RawTensor 的多次 assemble 会产生不同的 logical tensor(SSA 版本)。这些版本表示同一块底层存储,应使用同一个 tensor slot。 现有 RootFunctionBuilder 会连接单个 loop 内的 init、iter、value 和 return 版本,也会连接函数返回值与参数。但当 loop 和普通 op 并列时,普通 op 产生的 SSA 版本没有被纳入这条连接关系。例如“loop 写入 → 普通 op 写入 → 后续 loop 读取”可能被分配到不同 slot。运行时因此找不到对应的 workspace 分配记录,报 F74008:Missing RUNTIME_SlotMarkNeedAlloc。 **方案** TransformBody 会先将普通 TensorOpStmt 段转换为 CALL 占位节点,再执行原有的控制流 slot 连接。占位节点不包含普通 op 原来的 SSA 输入和结果,因此仅在转换后的 IR 上补充连接无法覆盖这个场景。 本次在转换前遍历当前函数的原始 IR,按 RawTensor 对 logical tensor 分组,并通过已有的 SetSameSlot 将同组 SSA 版本连接到一个 slot。改动限定在 RootFunctionBuilder,不修改 TensorSlotManager 接口;原有 loop 和返回值的连接逻辑保持不变。 See merge request: cann/pypto!7454 | 17 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(machine): Add yield scalar expr support for IfStmt and ForStmt Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !5465 merge feat/if-for-yield-scalar-expr into master feat(machine): Add yield scalar expr support for IfStmt and ForStmt Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: feat(machine): Add yield scalar expr support for IfStmt and ForStmt Enhance new IR control flow codegen to generate symbolic assignment for scalar yield values in IfStmt and ForStmt branches. Previously only ForStmt loopVar was registered to symbolTable; now scalar returnVars from both IfStmt and ForStmt are registered, and YieldStmt values are converted to VALUE_xxx = expr; in controlFlow cpp. Changes: - Register scalar returnVars to symbolTable in FindExprFromIfStmt and FindExprFromForStmt - Collect yield value symbols in FindExprFromIRStmt YieldStmt case - Add currentReturnVars parameter to VisitIRStmtForControlFlow for passing returnVars through recursion - Generate VALUE_xxx = expr; in controlFlow cpp for scalar YieldStmt values - Skip tensor type returnVars and yield values via ScalarType check - Add 10 UT test cases covering symbol registration, yield codegen, nested isolation, tensor skip, backward compat - Add ST test with if/else + for loop yielding constant and symbolic expression as loop bounds Related Issues: N/A See merge request: cann/pypto!5465 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 days ago | ||
| 1 month ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 3 days ago | ||
| 2 days ago | ||
| 22 hours ago | ||
| 1 month ago | ||
| 10 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 3 months ago | ||
| 4 days ago | ||
| 2 months ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 29 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 3 months ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 months ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 1 month ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 months ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 17 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 3 months ago |