| Files | Last commit | Last update |
|---|---|---|
refactor(config): Remove set_runtime_options and get_runtime_options public APIs Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !1745 merge 0318 into master refactor(config): Remove set_runtime_options and get_runtime_options public APIs Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## Motivation Remove set_runtime_options and get_runtime_options public APIs from pypto module. Runtime options should only be configured through @pypto.jit or @pypto.frontend.jit decorator's runtime_options parameter. ## Changes - Delete set_runtime_options and get_runtime_options functions from python/pypto/config.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/runtime.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/frontend/parser/entry.py - Delete unused _dispatch_with_run_mode function from python/pypto/frontend/parser/entry.py - Rename docs/api/config/pypto-set_runtime_options.md to docs/api/config/pypto-runtime_options.md and update content to only document runtime_options parameter in jit decorator - Delete docs/api/config/pypto-get_runtime_options.md - Delete pypto.set_runtime_options(stitch_function_max_num=128) call from models/deepseek_v32_exp/deepseekv32_lightning_indexer_prolog_quant.py (the kernel already has stitch_function_max_num=128 in jit config) - Remove test_runtime_option function and update test_reset_option in python/tests/ut/interface/test_config_options.py - Remove pypto.set_runtime_options call from python/tests/ut/ds_v32/test_lightning_indexer_topk.py - Update .agents/skills/pypto-operator-perf-analyzer/scripts/analyze_perf.py and .agents/skills/pypto-operator-perf-analyzer/SKILL.md to remove set_runtime_options examples See merge request: cann/pypto!1745 | 8 months ago | |
feat(docs): Make docs to html Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !430 merge rst into master feat(docs): Make docs to html Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 使用Sphinx工具包将docs目录下的内容构建为HTML页面,该PR包含构建HTML所必要的Makefile、index文件,还有一些写法规范上的调整,便于配合使用Sphinx See merge request: cann/pypto!430 | 10 months ago | |
fix(vector): Fix cast satmode Co-authored-by: wkkk0528<wangkai578@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge cast_satmode into master fix(vector): Fix cast satmode Created-by: wkkk0528 Commit-by: wkkk0528 Merged-by: cann-robot Description: 背景:量化场景使用cast时需要走饱和模式,当前cast默认走的非饱和模式,需要增加参数以控制 TCast增加SaturationMode参数,用以控制浮点数转整数时的溢出处理方式;增加相应的python接口;修改资料说明 See merge request: cann/pypto!1642 | 8 months ago | |
fix(docs): Fix some formatting problems of markdown files Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !819 merge master into master fix(docs): Fix some formatting problems of markdown files Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: fix(docs): Fix some formatting problems of markdown files See merge request: cann/pypto!819 | 9 months ago | |
docs(frontend): Update docs example path and merge some md files Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !219 merge master into master docs(frontend): Update docs example path and merge some md files Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: ## 描述 Update docs example path and merge some md files ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 1.example路径更新,文档同步修改,同时更新成代码仓相对路径 2.部分md文件合并成一个,便于后续sphnix构建 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!219 | 10 months ago | |
fix(Operation): Fix remainder while data type is int16 Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !1855 merge fix/remainder into master fix(Operation): Fix remainder while data type is int16 Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 修复remainder在输入为int16数据类型的情形下产生的问题。 Related Issue: [#846](https://gitcode.com/cann/pypto/issues/846) See merge request: cann/pypto!1855 | 8 months ago | |
fix(docs): Update pypto.jit to pypto.frontend.jit Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1296 merge front_2.0 into master fix(docs): Update pypto.jit to pypto.frontend.jit Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: Update docs : pypto.jit to pypto.frontend.jit See merge request: cann/pypto!1296 | 8 months ago | |
fix(docs): Change the file name to english Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !442 merge wmy into master fix(docs): Change the file name to english Created-by: W4termy Commit-by: lyz0328 Merged-by: cann-robot Description: docs目录下部分文件中文名修改为英文名 See merge request: cann/pypto!442 | 10 months ago | |
fix(front): Modify Tensor constructor docs Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1183 merge master into master fix(front): Modify Tensor constructor docs Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: Modify Tensor constructor docs See merge request: cann/pypto!1183 | 8 months ago | |
fix(docs): Change the file name to english Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !442 merge wmy into master fix(docs): Change the file name to english Created-by: W4termy Commit-by: lyz0328 Merged-by: cann-robot Description: docs目录下部分文件中文名修改为英文名 See merge request: cann/pypto!442 | 10 months ago | |
fix(config): Fix config scope stack leak for combine_axis and related options Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1673 merge fix_jit_scope into master fix(config): Fix config scope stack leak for combine_axis and related options Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 问题描述1: HostMachine 在 SubAllStashedTask 中执行 stashed 编译任务时,会通过 Restore 将 各任务的 config scope 压入栈,但原先缺少对应的 EndScope 弹出。导致: - 编译完成后 scope 栈未恢复,后续 get_operation_options() 等读取到错误配置 - 异常退出时同样未弹出,scope 栈持续增长 修复方案: - 新增 config::ScopedRestore RAII 类:构造时 PushScope,析构时 EndScope - SubAllStashedTask 使用 ScopedRestore 替代手动 Restore,保证正常/异常路径下 都能正确弹出 scope - parser: 为 pypto.loop(1) 补充 name 参数,便于 scope 追踪 Related Issue: [#655](https://gitcode.com/cann/pypto/issues/655) , [#669](https://gitcode.com/cann/pypto/issues/669) 问题描述2: 本次将 devRunner.SynchronizeDeviceToHostProfData() 替换为直接调用 devRunner.DumpAiCoreExecutionTimeData()。因原函数通过 CFG_RUNTIME_DBEUG_MODE 做条件拦截,但 Python 前端配置存于 JIT 而非配置树,导致该配置无法读取、目标逻辑无法触发;修改后可绕过拦截,确保 DumpAiCoreExecutionTimeData() 稳定执行。 See merge request: cann/pypto!1673 | 8 months ago | |
feat(frontend): land AST-based frontend, docs, examples, and tests Co-authored-by: Siyuan Feng<syfeng@sii.edu.cn> # message auto-generated for no-merge-commit merge: !5 merge frontend into master feat(frontend): land AST-based frontend, docs, examples, and tests Created-by: syfeng Commit-by: Siyuan Feng Merged-by: cann-robot Description: Introduce the new pypto.frontend stack with an AST-based parser, improved diagnostics/source locations, nested @pypto.frontend.function inlining, and better closure/local capture behavior during JIT compilation. See merge request: cann/pypto!5 | 10 months ago | |
feat(front): Declaration for compatibility with square brackets Co-authored-by: yyyfff<yefan29@huawei.com> # message auto-generated for no-merge-commit merge: !1734 merge master into master feat(front): Declaration for compatibility with square brackets Created-by: yyyfff Commit-by: yyyfff Merged-by: cann-robot Description: Add compatibility with square brackets in kernel declaration:pypto.Tensor[[], pypto.DT_INT32] See merge request: cann/pypto!1734 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago |