| feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !6648 merge automixdocs into master feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config The level-based auto_mix_partition config (off/default/high strings and the N>100 custom op-limit) is removed from pypto.set_pass_options. The auto CV Mix merging switch of the ReduceCopyMerge pass is now configured solely via pypto.experimental.auto_mix_partition(0/1), defaulting to disabled (0). The C++ ReduceCopyMerge level mapping (MapAutoMixPartitionToLimits) is kept unchanged. Changes: - Add pypto.experimental.auto_mix_partition(value) accepting only 0/1, other values raise ValueError - Remove the auto_mix_partition parameter from pypto.set_pass_options and its read-back key from pypto.get_pass_options - Converge the tile_fwk_config default to 0 and tighten the schema range to 0~1 - Update the interface UT (test_config_options.py) and the set_pass_options API doc - Remove the sg_set_atomic_scope description from the set_pass_options doc Related Issues: #3431 See merge request: cann/pypto!6648 | 1 month ago |
| 修改冒烟产物上传 Co-authored-by: cui_jiahao<cuijiahao5@h-partners.com> # message auto-generated for no-merge-commit merge: !6505 merge master into master 修改冒烟产物上传 Created-by: cui_jiahao Commit-by: cui_jiahao 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!6505 | 1 month ago |
| fix(agent): Use "opened" PR state in code-merge-agent Co-authored-by: xiaoyueyueyueyue<liuxiaoxiao11@huawei.com> # message auto-generated for no-merge-commit merge: !5916 merge fix/agent-use-opened-state into master fix(agent): Use "opened" PR state in code-merge-agent Created-by: xiaoyueyueyueyue Commit-by: xiaoyueyueyueyue Merged-by: cann-robot Description: GitCode/GitLab uses "opened" as the open PR state; "open" would never match. Changes: - Minimal one-spot fix. Validation: - No Issue linked. See merge request: cann/pypto!5916 | 2 months ago |
| fix(build): Flush gcov data for pytest-forked subprocess coverage Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6148 merge master into master fix(build): Flush gcov data for pytest-forked subprocess coverage Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## 背景 Python UT 通过 --forked(pytest-forked)并行执行用例,子进程以 os._exit() 退出,会跳过 atexit 钩子,导致 gcov 的 __gcov_exit 不被调用、.gcda 覆盖率数据不落盘。因此 --gcov 无法统计到由 Python UT 触发的 C++ 覆盖率(issue #2705)。 ## 解决方案 1. **python/tests/ut/conftest.py**:新增 pytest_runtest_teardown 钩子,当环境变量 PYPTO_GCOV_FLUSH=1 时手动调用 __gcov_dump(),把内存中的计数器写入 .gcda;并补充 duration_estimate 装饰器。 2. **build_ci.py**:--gcov 时注入 PYPTO_GCOV_FLUSH=1。 3. **cmake/intf.cmake**:gcov 模式追加链接选项 -Wl,--export-dynamic,-u,__gcov_dump,--whole-archive,-lgcov,--no-whole-archive。仅加 -u,__gcov_dump 时 _gcov_dump.o 不会被 lgcov.a 拉入,__gcov_dump 保持未定义,ctypes.CDLL(None) 找不到该符号,必须用 --whole-archive 强制拉入。 4. **cmake/scripts/gen_coverage.py**:lcov >= 2.0 时追加 --ignore-errors inconsistent,将 lcov 2.3.1 对 pybind11.cpp 的 mismatched end line 由 ERROR 降级为 WARNING,避免覆盖率生成失败。 5. **tools/scripts/pre_commit_check.sh**: - 修正覆盖率开关(--py_cov → --gcov)、clang 失败退出码、GTEST_FILTER 保存/恢复、覆盖率标签等; - 移除本地增量覆盖率门禁:本地 gen_coverage.py --increment 与 CI 的 get_ai_inc_cov.py(addlcov) 是两套独立实现,增量覆盖率无法保证与 CI 一致,门禁统一由 CI 兜底。 ## 验证 - bash tools/scripts/pre_commit_check.sh --full 全部通过(gnu / clang+ASan / Python / costmodel 仿真,耗时约 4779s)。 - 确认 Python UT 触发场景下 C++ 覆盖率数据(.gcda)可正常落盘并被 --gcov 统计。 Related Issue: #2705 See merge request: cann/pypto!6148 | 1 month ago |
| fix(operation): Conv fix default param Co-authored-by: luyakun_hw<luyakun@h-partners.com> # message auto-generated for no-merge-commit merge: !6628 merge fix_default_param into master fix(operation): Conv fix default param Created-by: luyakun_hw Commit-by: luyakun_hw Merged-by: cann-robot Description: 1、解决按照conv算子资料中的样例,不带extend_params参数执行会报错的问题; 2、修改docs/zh/api/tensor_api/operation/pypto-conv.md文档中动态轴切分的约束描述。 https://gitcode.com/cann/pypto/issues/3425 See merge request: cann/pypto!6628 | 1 month ago |
| fix(docs): Add the zh/en link of README Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6255 merge master into master fix(docs): Add the zh/en link of README Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1. 文档国际化要求,需要在README文件中增加中英文文件跳转链接 2. 部分文档低错修改,如AICore>AI Core See merge request: cann/pypto!6255 | 1 month ago |
| fix(interpreter): A5 cv data path add copyout op Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6664 merge master into master fix(interpreter): A5 cv data path add copyout op Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: A5 cv数据通路增加copyout类op See merge request: cann/pypto!6664 | 1 month ago |
| fix(operation): Conv fix default param Co-authored-by: luyakun_hw<luyakun@h-partners.com> # message auto-generated for no-merge-commit merge: !6628 merge fix_default_param into master fix(operation): Conv fix default param Created-by: luyakun_hw Commit-by: luyakun_hw Merged-by: cann-robot Description: 1、解决按照conv算子资料中的样例,不带extend_params参数执行会报错的问题; 2、修改docs/zh/api/tensor_api/operation/pypto-conv.md文档中动态轴切分的约束描述。 https://gitcode.com/cann/pypto/issues/3425 See merge request: cann/pypto!6628 | 1 month ago |
| refactor(scripts): Split check_slice_spacing to lower cyclomatic complexity Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !6503 merge fix_precommit into master refactor(scripts): Split check_slice_spacing to lower cyclomatic complexity Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 减少脚本中的圈复杂度 See merge request: cann/pypto!6503 | 1 month 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 | 1 month ago |
| style(config): Update .clang-format and .pre-commit-config.yaml rules Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4877 merge style-config-ci into master style(config): Update .clang-format and .pre-commit-config.yaml rules Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Update .clang-format and .pre-commit-config.yaml rules See merge request: cann/pypto!4877 | 3 months ago |
| fix(docs): Add the index files Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !5184 merge master into master fix(docs): Add the index files Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、将pypto.isnan、pypto.pack、pypto.unpack接口文档写入目录文件index_hiascend.md 2、pypto.isnan、pypto.pack、pypto.unpack接口支持910DT,增加相关描述,并补充芯片标签。 3、删除目录中不存在的内容引用:pypto-copysign 4、图片lfs跟踪文件统一到仓库根目录下 Related Issue: [#2814](https://gitcode.com/cann/pypto/issues/2814) See merge request: cann/pypto!5184 | 3 months ago |
| style(config): Update .clang-format and .pre-commit-config.yaml rules Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4877 merge style-config-ci into master style(config): Update .clang-format and .pre-commit-config.yaml rules Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Update .clang-format and .pre-commit-config.yaml rules See merge request: cann/pypto!4877 | 3 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 | 3 months ago |
| feat(skill): Add pypto-machine-code-review skill, remove pypto-aicpu-perf-coding Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !5219 merge feat/machine-code-review-skill into master feat(skill): Add pypto-machine-code-review skill, remove pypto-aicpu-perf-coding Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: Merge pypto-aicpu-perf-coding into pypto-machine-code-review. See commit message for details. See merge request: cann/pypto!5219 | 3 months ago |
| feat(operation): kirin support operation dtype specification and softmax Co-authored-by: GBowen666<libowen58@huawei.com> # message auto-generated for no-merge-commit merge: !6074 merge master into master feat(operation): kirin support operation dtype specification and softmax Created-by: GBowen666 Commit-by: GBowen666 Merged-by: cann-robot Description: Related Issue: [[Requirement|需求建议]:kirin支持GetSupportedDataTypesByArch数据类型校验,kirin支持softmax/rmsnorm fp16计算 ](https://gitcode.com/cann/pypto/issues/3270) 1、feat(operation): kirin support operation dtype specification and softmax See merge request: cann/pypto!6074 | 1 month 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 | 3 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 | 3 months ago |
| Initial commit | 10 months ago |
| 修复dump 数据bug Co-authored-by: s00454010<suntao37@huawei.com> # message auto-generated for no-merge-commit merge: !5436 merge bug/dumpdata into master 修复dump 数据bug Created-by: u010986451 Commit-by: s00454010 Merged-by: cann-robot Description: 修复dump 数据bug See merge request: cann/pypto!5436 | 2 months ago |
| 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 months ago |
| fix(docs): Add the zh/en link of README Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6255 merge master into master fix(docs): Add the zh/en link of README Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1. 文档国际化要求,需要在README文件中增加中英文文件跳转链接 2. 部分文档低错修改,如AICore>AI Core See merge request: cann/pypto!6255 | 1 month ago |
| fix(docs): Add the zh/en link of README Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6255 merge master into master fix(docs): Add the zh/en link of README Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1. 文档国际化要求,需要在README文件中增加中英文文件跳转链接 2. 部分文档低错修改,如AICore>AI Core See merge request: cann/pypto!6255 | 1 month ago |
| fix(docs): Precision tools do not have a recompilation scenario Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !4153 merge master into master fix(docs): Precision tools do not have a recompilation scenario Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、仓库文档国际化,新增英文readme文件,skill和docs暂不翻译 2、精度工具文档陈旧内容修改:1)删除精度工具重编译步骤 2)更新msaccucmp.py执行命令,明确执行路径、不带版本信息,便于用户在不同版本通用执行 3、webide安装方式的安装界面截图变更 Related Issue: #2345 See merge request: cann/pypto!4153 | 4 months ago |
| fix(docs): Precision tools do not have a recompilation scenario Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !4153 merge master into master fix(docs): Precision tools do not have a recompilation scenario Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、仓库文档国际化,新增英文readme文件,skill和docs暂不翻译 2、精度工具文档陈旧内容修改:1)删除精度工具重编译步骤 2)更新msaccucmp.py执行命令,明确执行路径、不带版本信息,便于用户在不同版本通用执行 3、webide安装方式的安装界面截图变更 Related Issue: #2345 See merge request: cann/pypto!4153 | 4 months ago |
| fix(interpreter): Fix tile_fwk_calculator compiler error in g++ 13.3.0 Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !1453 merge interpreter into master fix(interpreter): Fix tile_fwk_calculator compiler error in g++ 13.3.0 Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: Fix tile_fwk_calculator compiler error in g++ 13.3.0 See merge request: cann/pypto!1453 | 7 months ago |
| feat(gcov): Support gcov of python scene Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !3250 merge master into master feat(gcov): Support gcov of python scene Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: 为 Python 前端用例增加 gcov 覆盖率统计能力。 主要修改: - 新增 gen_coverage_config.py 在 CMake POST_BUILD 阶段生成覆盖率配置 - setup.py 写入 build_dir 标记文件供 build_ci.py 定位配置文件 - build_ci.py 新增 py_generate_coverage 函数生成覆盖率报告 - 修复 CMake VERBATIM 问题,处理生成器表达式展开后的分号分隔路径(同时修复 C++ 覆盖率场景) See merge request: cann/pypto!3250 | 5 months ago |
| fix(build): Flush gcov data for pytest-forked subprocess coverage Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6148 merge master into master fix(build): Flush gcov data for pytest-forked subprocess coverage Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## 背景 Python UT 通过 --forked(pytest-forked)并行执行用例,子进程以 os._exit() 退出,会跳过 atexit 钩子,导致 gcov 的 __gcov_exit 不被调用、.gcda 覆盖率数据不落盘。因此 --gcov 无法统计到由 Python UT 触发的 C++ 覆盖率(issue #2705)。 ## 解决方案 1. **python/tests/ut/conftest.py**:新增 pytest_runtest_teardown 钩子,当环境变量 PYPTO_GCOV_FLUSH=1 时手动调用 __gcov_dump(),把内存中的计数器写入 .gcda;并补充 duration_estimate 装饰器。 2. **build_ci.py**:--gcov 时注入 PYPTO_GCOV_FLUSH=1。 3. **cmake/intf.cmake**:gcov 模式追加链接选项 -Wl,--export-dynamic,-u,__gcov_dump,--whole-archive,-lgcov,--no-whole-archive。仅加 -u,__gcov_dump 时 _gcov_dump.o 不会被 lgcov.a 拉入,__gcov_dump 保持未定义,ctypes.CDLL(None) 找不到该符号,必须用 --whole-archive 强制拉入。 4. **cmake/scripts/gen_coverage.py**:lcov >= 2.0 时追加 --ignore-errors inconsistent,将 lcov 2.3.1 对 pybind11.cpp 的 mismatched end line 由 ERROR 降级为 WARNING,避免覆盖率生成失败。 5. **tools/scripts/pre_commit_check.sh**: - 修正覆盖率开关(--py_cov → --gcov)、clang 失败退出码、GTEST_FILTER 保存/恢复、覆盖率标签等; - 移除本地增量覆盖率门禁:本地 gen_coverage.py --increment 与 CI 的 get_ai_inc_cov.py(addlcov) 是两套独立实现,增量覆盖率无法保证与 CI 一致,门禁统一由 CI 兜底。 ## 验证 - bash tools/scripts/pre_commit_check.sh --full 全部通过(gnu / clang+ASan / Python / costmodel 仿真,耗时约 4779s)。 - 确认 Python UT 触发场景下 C++ 覆盖率数据(.gcda)可正常落盘并被 --gcov 统计。 Related Issue: #2705 See merge request: cann/pypto!6148 | 1 month ago |
| fix(machine): fix log quality issues in machine module. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5679 merge pyptolog_fix into master fix(machine): fix log quality issues in machine module. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: PyPTO machine 模块日志整改 See merge request: cann/pypto!5679 | 2 months ago |
| fix(function):gcc升级15版本兼容问题修改 Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !5862 merge master into master fix(function):gcc升级15版本兼容问题修改 Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: fix(interface): gcc升级15版本兼容问题修改 Related Issue: #3172 See merge request: cann/pypto!5862 | 2 months ago |
| docs(agents): Add AICPU hot-path high-performance coding skill Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5097 merge perf/item-pool-lazy-init into master docs(agents): Add AICPU hot-path high-performance coding skill Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 See merge request: cann/pypto!5097 | 3 months ago |
| feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !5599 merge v3_02_compile into master feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract 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. First functional piece of the exported custom-op subsystem: everything downstream needs a way to recover a kernel's source and to compile it under a stable contract. **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 kernel-source introspection for decorated kernel functions: source recovery, annotation-span editing, scope classification, and the authoring helpers that read a DIRECT kernel's declared shape/dtype constants and classify a factory's signature - Define the runtime compile contract: CompileEntry(jit_kernel=… | factory=…, num_inputs=, num_outputs=, factory_signature=), called as entry(shapes, dtypes, attrs, soc_version) -> compiled-kernel path, result cached per key. Construction accepts exactly one kernel form and rejects an unknown factory_signature or a non-positive input/output count; each call requires soc_version and checks the shape/dtype count against num_inputs - infer_shape / infer_dtype are read/write properties, rejecting a non-callable at assignment rather than deep in dispatch; without a hook every output takes the first input's shape and dtype - Enforce author-declared annotations at compile: a pinned dtype that disagrees with the runtime dtype raises, a pinned shape warns - Wire build_kernel through the frontend parser (single-object contract stated in its error), register the package in pyproject.toml - Add the kernel compile samples and the unit tests over the contract, the declared annotations and the warning paths Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!5599 | 1 month ago |
| fix(test): cleanup log level and test configuration Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5773 merge fixlogbug into master fix(test): cleanup log level and test configuration Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除models目录后,将对应pytest文件中关于models的内容删除 由于framework/src/adapter/manager/cann_adapter.h中空指针不会影响后续执行,改回info级别日志,调整日志信息 See merge request: cann/pypto!5773 | 2 months ago |
| fix(build_ci): auto-derive job_num from CPU count and cgroup memory Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !5721 merge fix_build_ci_job_num into master fix(build_ci): auto-derive job_num from CPU count and cgroup memory Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: 修复 1. build_ci默认并发度过高导致高核低内存环境编译OOM 2. [文档] 编译(pip install .)未说明内存/并行度要求,默认并行在 32Gi 内存仍 OOM(exit 137) See merge request: cann/pypto!5721 | 2 months ago |
| fix(all): Fix spelling errors in source comments and diagnostic messages Co-authored-by: wangmingjun<wangmingjun13@huawei.com> # message auto-generated for no-merge-commit merge: !5392 merge fix/spelling-errors-2908 into master fix(all): Fix spelling errors in source comments and diagnostic messages Created-by: hwwangmingjun Commit-by: wangmingjun Merged-by: cann-robot Description: fix(all): Fix spelling errors in source comments and diagnostic messages 修复源码注释、错误信息和调试日志中多处英文拼写错误,避免阅读诊断输出时产生误解。 Changes: - device_error_code.h:defalut -> default - codegen_vector.cpp:occured/unsupport -> occurred/unsupported - operation_impl.cpp:interger -> integer - device_task_context.cpp:Inital -> Initial - directed_graph_util.h:lenght -> length - tune_sync_for_vf.cpp:falied -> failed(4 处) - graph_utils.h / expand_function.cpp:seperate -> separate - cube_process.cpp:invlid -> invalid - pil2ir.py:funtion -> function - test_dynamic_mm.cpp:intput -> input(4 处) Related Issues: #2908 See merge request: cann/pypto!5392 | 2 months ago |