| Files | Last commit | Last update |
|---|---|---|
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(exported_custom_op): Add the custom-op export and deploy library under tools Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6780 merge v6_glue_tools into master feat(exported_custom_op): Add the custom-op export and deploy library under tools Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Consolidates #6769, #6770, #6771, #6772, #6773 and #6774 — all split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability — into one PR, and moves the library they introduce out of the examples tree into tools/exported_custom_op/. Those six carried disjoint file sets that were only meaningful together, so reviewing them one at a time meant reviewing a single library a subpackage at a time. The library is not an example: it is the machinery an example uses. Demos import it as the exported_custom_op package, with <repo root>/tools on sys.path. Nothing outside tools/ is touched. Changes: - Add tools/exported_custom_op/ with four subpackages: common/ (pypto custom-op node discovery), export/ (the ONNX export session), deploy/ (the C++ codegen and the CMake build that produces libcust_opapi.so, with the bundled C++ under deploy/vendors/) and run/ (the shared demo run CLI) - Add the unit suite under tools/exported_custom_op/tests/ut/ — 68 files, 275 tests, covering the generated C++ and its text goldens, the embedded kernel loader, node discovery, the op-declaration gate and the export consistency check - Against the six superseded PRs the content is unchanged apart from the import renames (lib.* to exported_custom_op.*), the path anchors the move required, and the prose that explained why the library sat beside the examples - pytest.ini's testpaths covers python/tests only, so this suite is not part of the default CI collection. Adding the example and tool suites to testpaths is a separate change, tracked with the demo tier Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!6780 | 2 months ago | |
feat(profiling): Adjust swimlane task name field order to seqNo-funcId-rootIndex-operIdx-psgId Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !6914 merge swimlane-task-name-order into master feat(profiling): Adjust swimlane task name field order to seqNo-funcId-rootIndex-operIdx-psgId Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: feat(profiling): Adjust swimlane task name field order to seqNo-funcId-rootIndex-operIdx-psgId The task name shown in merged_swimlane.json is currently composed as {seqNo}-{funcId}-{operIdx}-{rootIndex}-{psgId}({semanticLabel}), where rootIndex (the root function index in program.json) sits in the 4th position. When analyzing the swimlane, it is easier to read if rootIndex is placed right after funcId instead of after operIdx. This PR reorders the name to {seqNo}-{funcId}-{rootIndex}-{operIdx}-{psgId}({semanticLabel}), keeping the first and last fields unchanged. Changes: - Adjust the field order in TaskInfo.get_task_name() of tools/profiling/draw_swim_lane.py - Keep formal_name() and the Task:[seqNo-funcId-operIdx] event-hint unchanged, so existing hint-based parsing is unaffected - Verified with multiple operator outputs (sum_lstm / compressor / inplace_add_rms_norm / quant_batch_matmul, 14535+ trace events): all names follow the new order, event-hints are unchanged; pypto-vscode rendering tool only reads nameParts[0] and nameParts[-1], no compatibility impact Related Issues: #3571 See merge request: cann/pypto!6914 | 1 month ago | |
fix(machine): Fix the memory overlap check tool Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !6400 merge duanhaotian17 into master fix(machine): Fix the memory overlap check tool Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6400 | 2 months ago | |
fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 3 months ago | |
fix(dfx): Adapt to latest msaicerr changes Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !6237 merge mtr2 into master fix(dfx): Adapt to latest msaicerr changes Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6237 | 2 months ago | |
fix(interpreter): Fix debug of pass verify dump tensor Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6965 merge master into master fix(interpreter): Fix debug of pass verify dump tensor Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. copyOpCode加入conv的搬运类op,dump tensor计算offset时能正确匹配分支 2. pass间精度离线对比脚本,遗漏了loopinfo是空的对比 See merge request: cann/pypto!6965 | 1 month ago | |
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 months ago | |
chore(env): update CANN toolkit version in prepare_env.sh to 9.1.1 Co-authored-by: lizixuan1020<3064268022@qq.com> # message auto-generated for no-merge-commit merge: !6650 merge chore/update-cann-version-9.1.1 into master chore(env): update CANN toolkit version in prepare_env.sh to 9.1.1 Created-by: lizixuan1020 Commit-by: lizixuan1020 Merged-by: cann-robot Description: ### PR功能描述 / 为什么需要这个合入 按 issue #3269: tools/prepare_env.sh 中的 cann-toolkit 版本仍为 9.0.0,已落后于最新正式版 **9.1.1**。本 PR 将其更新: - CANN_VERSION 与 CANN_VERSION_LATEST:9.0.0 → 9.1.1 - toolkit 下载链接(x86_64 / aarch64)→ 9.1.1 - ops 下载链接(910b / A3,x86_64 / aarch64)→ 9.1.1 - driver / firmware / pto-isa 链接保持不变(经探测仍有效) ### 链接有效性验证 修改涉及的 6 个 OBS 链接全部 HEAD 探测 **HTTP 200**: | 包 | 架构 | 大小 | 状态 | |---|---|---|---| | Ascend-cann-toolkit_9.1.1 | aarch64 | 1.2G | 200 | | Ascend-cann-toolkit_9.1.1 | x86_64 | 1.3G | 200 | | Ascend-cann-910b-ops_9.1.1 | aarch64 | 2.3G | 200 | | Ascend-cann-910b-ops_9.1.1 | x86_64 | 2.3G | 200 | | Ascend-cann-A3-ops_9.1.1 | aarch64 | 2.2G | 200 | | Ascend-cann-A3-ops_9.1.1 | x86_64 | 2.3G | 200 | 同时探测 9.2.0/9.2.1/10.0.0 均不存在(403),确认 **9.1.1 即 OBS 上的最新正式版**。 ### 实机安装验证(aarch64 910B3) 在 910B3(aarch64)环境实际执行修改后的脚本: bash tools/prepare_env.sh --type=cann --device-type=a2 --install-path=<custom> --quiet 结果:toolkit 9.1.1(1.2G)+ 910b-ops 9.1.1(2.3G)+ pto-isa 从新链接下载成功,全部安装完成(ge-executor / ge-compiler / npu-runtime / ops-nn / ops-cv / ops-transformer / ops-ras 均 install success);version.info 报告 version=9.1.1;原有 9.1.0 环境不受影响(pypto 导入正常)。安装日志摘要见 PR 附件说明。 ### 改动类型 - 其它 / Other(环境脚本版本维护) ### 测试信息 - 链接探测:6/6 通过(HTTP 200) - 实机端到端:下载+安装成功,版本号验证通过 fixes #3269 See merge request: cann/pypto!6650 | 2 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 |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 7 months ago | ||
| 2 months ago | ||
| 4 months ago |