| Files | Last commit | Last update |
|---|---|---|
fix(document): Update docs, Adapting to the new paradigm of the frontend Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1634 merge change_md into master fix(document): Update docs, Adapting to the new paradigm of the frontend Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: # PyPTO Frontend JIT 文档修改 ## 修改意图 将 docs 目录下使用 pypto.frontend.jit 的示例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel (旧写法依然支持) - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 无需设置shape的具体值,使用枚举值标记动态轴pypto.STATIC - **旧写法**: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) See merge request: cann/pypto!1634 | 8 months ago | |
fix(document): Update docs, Adapting to the new paradigm of the frontend Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1634 merge change_md into master fix(document): Update docs, Adapting to the new paradigm of the frontend Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: # PyPTO Frontend JIT 文档修改 ## 修改意图 将 docs 目录下使用 pypto.frontend.jit 的示例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel (旧写法依然支持) - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 无需设置shape的具体值,使用枚举值标记动态轴pypto.STATIC - **旧写法**: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) See merge request: cann/pypto!1634 | 8 months ago | |
fix(docs): Reduced the errors in the docs Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !474 merge master into master fix(docs): Reduced the errors in the docs Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 修改文档低错。 See merge request: cann/pypto!474 | 10 months ago | |
fix(document): Update docs, Adapting to the new paradigm of the frontend Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1634 merge change_md into master fix(document): Update docs, Adapting to the new paradigm of the frontend Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: # PyPTO Frontend JIT 文档修改 ## 修改意图 将 docs 目录下使用 pypto.frontend.jit 的示例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel (旧写法依然支持) - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 无需设置shape的具体值,使用枚举值标记动态轴pypto.STATIC - **旧写法**: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) See merge request: cann/pypto!1634 | 8 months ago | |
feat(frontend): Pypto frontend performance optimize by adjust get_npu_format Co-authored-by: HuangYuqian<huangyuqian2@huawei.com> # message auto-generated for no-merge-commit merge: !1740 merge get_npu_format_disable into master feat(frontend): Pypto frontend performance optimize by adjust get_npu_format Created-by: huangyuqian Commit-by: HuangYuqian Merged-by: cann-robot Description: Related Issue: https://gitcode.com/cann/pypto/issues/486 See merge request: cann/pypto!1740 | 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(document): Update docs, Adapting to the new paradigm of the frontend Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1634 merge change_md into master fix(document): Update docs, Adapting to the new paradigm of the frontend Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: # PyPTO Frontend JIT 文档修改 ## 修改意图 将 docs 目录下使用 pypto.frontend.jit 的示例从旧编程范式迁移到新范式,以适配 PyPTO frontend 的新接口规范。 ## 主要变更 ### 1. 去除 wrapper 函数 - **旧写法**:在测试函数内部定义 kernel,或通过 factory 函数动态创建 kernel (旧写法依然支持) - **新写法**:kernel 函数直接定义在模块顶层 ### 2. Shape 参数声明 无需设置shape的具体值,使用枚举值标记动态轴pypto.STATIC - **旧写法**: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) See merge request: cann/pypto!1634 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago |