| Files | Last commit | Last update |
|---|---|---|
fix(front): Adapting to the new paradigm of the frontend, remove return in kernel Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1615 merge remove_return into master fix(front): Adapting to the new paradigm of the frontend, remove return in kernel Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: # PyPTO Frontend JIT 测试用例范式修改 - **旧写法**:使用 return 返回计算结果 - **新写法**:添加输出参数,使用 out.move() 方式输出 See merge request: cann/pypto!1615 | 8 months ago | |
fix(function): Function new express Co-authored-by: z00471782<zhangjiarui6@huawei.com> # message auto-generated for no-merge-commit merge: !1373 merge master into master fix(function): Function new express Created-by: blue_jan Commit-by: z00471782 Merged-by: cann-robot Description: fix(function): Function new express description: Function new express @pypto.frontend.jit def kernel() @pypto.frontend.function def sub_kernel() See merge request: cann/pypto!1373 | 8 months ago | |
test(frontend): Add test for kernel reuse Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1426 merge add_kernel_test into master test(frontend): Add test for kernel reuse Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: Add test for kernel reuse: No recompilation when dynamic axis changes. Recompile when static axis changes. See merge request: cann/pypto!1426 | 8 months ago | |
fix(front): Adapting to the new paradigm of the frontend for ST Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1448 merge front_2.0 into master fix(front): Adapting to the new paradigm of the frontend for ST Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: # PyPTO Frontend JIT 测试用例范式修改 ## 修改意图 将 python/tests/st 目录下使用 pypto.frontend.jit 的测试用例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 - **旧写法**:pypto.Tensor((32, 32), dtype) 或 pypto.Tensor(shape, dtype) - **新写法**:pypto.Tensor([pypto.STATIC, pypto.STATIC], dtype) ### 3. 输出方式 - **旧写法**:使用 return 返回计算结果 - **新写法**:添加输出参数,使用 out.move() 方式输出 ### 4. 调用方式 - **旧写法**:result = kernel(a, b) - **新写法**:预先创建输出 tensor,kernel(a, b, out) ## 修改文件列表 | 文件 | 修改内容 | |------|----------| | test_matmul.py | 去除 wrapper,shape 改为 STATIC,添加输出参数 | | test_dynamic_reshape_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_clone_new_front.py | 去除 wrapper,添加输出参数 | | test_aclgraph_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_debug_mode_new_front.py | 去除 wrapper,添加输出参数 | | test_is_loop_begin_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_verify_frontend_jit.py | 去除 wrapper,添加输出参数 | | test_onboard_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_iter.py | 去除 wrapper,添加输出参数 | | test_hidden_loop_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_loop_unroll_variable_scope.py | 去除 wrapper,添加输出参数 | | test_multi_jit_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_profiling.py | 去除 wrapper,添加输出参数 | | test_options_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_infershape_new_front.py | 去除 wrapper,添加输出参数 | | test_use_cache.py | 去除 wrapper,shape 改为 STATIC | See merge request: cann/pypto!1448 | 8 months ago | |
fix(front): Adapting to the new paradigm of the frontend for ST Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1448 merge front_2.0 into master fix(front): Adapting to the new paradigm of the frontend for ST Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: # PyPTO Frontend JIT 测试用例范式修改 ## 修改意图 将 python/tests/st 目录下使用 pypto.frontend.jit 的测试用例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 - **旧写法**:pypto.Tensor((32, 32), dtype) 或 pypto.Tensor(shape, dtype) - **新写法**:pypto.Tensor([pypto.STATIC, pypto.STATIC], dtype) ### 3. 输出方式 - **旧写法**:使用 return 返回计算结果 - **新写法**:添加输出参数,使用 out.move() 方式输出 ### 4. 调用方式 - **旧写法**:result = kernel(a, b) - **新写法**:预先创建输出 tensor,kernel(a, b, out) ## 修改文件列表 | 文件 | 修改内容 | |------|----------| | test_matmul.py | 去除 wrapper,shape 改为 STATIC,添加输出参数 | | test_dynamic_reshape_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_clone_new_front.py | 去除 wrapper,添加输出参数 | | test_aclgraph_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_debug_mode_new_front.py | 去除 wrapper,添加输出参数 | | test_is_loop_begin_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_verify_frontend_jit.py | 去除 wrapper,添加输出参数 | | test_onboard_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_iter.py | 去除 wrapper,添加输出参数 | | test_hidden_loop_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_loop_unroll_variable_scope.py | 去除 wrapper,添加输出参数 | | test_multi_jit_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_profiling.py | 去除 wrapper,添加输出参数 | | test_options_new_front.py | 去除 wrapper,shape 改为 STATIC | | test_infershape_new_front.py | 去除 wrapper,添加输出参数 | | test_use_cache.py | 去除 wrapper,shape 改为 STATIC | See merge request: cann/pypto!1448 | 8 months ago | |
fix(frontend): Fix loop variable scoping to match Python function-level semantics Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1523 merge front_2.0 into master fix(frontend): Fix loop variable scoping to match Python function-level semantics Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: 让 PyPTO 的循环变量处理符合 Python 函数级作用域语义: 1. 循环内定义的变量在循环外仍然可见 2. 变量生命周期由 liveness 分析控制(在最后一次使用后删除) See merge request: cann/pypto!1523 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago |