| 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(frontend): Support HF8 via uint8 and standardize dtype rules Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1917 merge fix_dtype_0321 into master fix(frontend): Support HF8 via uint8 and standardize dtype rules Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: fix: standardize tensor dtype conversion for PyTorch-Pypto interaction - Support HF8 via torch.uint8 in PyTorch tensor - Set kernel annotation as dtype priority during conversion - Enforce standard dtype for special tensor types See merge request: cann/pypto!1917 | 8 months ago | |
fix(frontend): Add operator overloads to pypto.Tensor class Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1579 merge tensor_fix into master fix(frontend): Add operator overloads to pypto.Tensor class Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: Add operator overloads to pypto.Tensor class - Implement unary operators: __neg__, __pos__ - Implement reverse binary operators: __rsub__, __rmul__, __rtruediv__ - Implement other binary operators: __floordiv__, __mod__, __pow__ - Implement comparison operators: __lt__, __le__, __ge__, __eq__, __ne__ Reverse operators use mathematically equivalent transformations to ensure correct argument order (Tensor first, scalar/Tensor second) as required by underlying pypto APIs: - __rsub__: scalar - tensor = -(tensor - scalar) - __rmul__: scalar * tensor = tensor * scalar - __rtruediv__: scalar / tensor = reciprocal(tensor) * scalar Related Issue: https://gitcode.com/cann/pypto/issues/631 Related Issue: https://gitcode.com/cann/pypto/issues/617 See merge request: cann/pypto!1579 | 8 months ago | |
fix(opreator): Modifying ST to the new frontend style Co-authored-by: grey-pig-six<jiangtaoyu@huawei.com> # message auto-generated for no-merge-commit merge: !1799 merge master into master fix(opreator): Modifying ST to the new frontend style Created-by: huizhu6 Commit-by: grey-pig-six Merged-by: cann-robot Description: 修改test_pg_lightning_indexer_prolog_quant_mxfp8/hif8 ST为pypto.frontend.jit新前端 See merge request: cann/pypto!1799 | 8 months ago | |
Initial commit | 10 months ago | |
feat(build): Optimize the parallel execution implementation of STest Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !36 merge master into master feat(build): Optimize the parallel execution implementation of STest Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ***Support C++ STest parallel execution*** 1. Remove redundant outputs for certain test cases during Golden comparison to reduce overall log size; 2. Adjust the maximum parallelism for Golden's parallel generation from 4 to 16; 3. Close the test cases that Golden fails to generate correctly; 4. Closing Part Unusual Examples; 5. Optimize the parallel execution script to support displaying the execution process by Device in STest scenarios; ***Support parallel execution of STest/Example in Python scenarios*** 1. Fixed some use case DeviceId settings, from forcing the use of 0 cards, to obtaining them from the environment variable TILE_FWK_DEVICE_ID for multi card parallelism; 2. Revise the original Example parallel logic from using all available cards in the environment to supporting the device parameter specified by build_ci.py; 3. Migration of examples/models/conftest. py to the project root directory so that it can control the multi card parallelism of Stest and Examples; 4. Enhance the function of conftest. py, support specifying parallel execution case card parameters (-- device), support Worker to execute cases on the corresponding Device based on the assigned DeviceId, support modifying Worker and Case execution process names so that ps axf can accurately view task execution status; ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!36 | 10 months ago | |
feat(build): Optimize the parallel execution implementation of STest Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !36 merge master into master feat(build): Optimize the parallel execution implementation of STest Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ***Support C++ STest parallel execution*** 1. Remove redundant outputs for certain test cases during Golden comparison to reduce overall log size; 2. Adjust the maximum parallelism for Golden's parallel generation from 4 to 16; 3. Close the test cases that Golden fails to generate correctly; 4. Closing Part Unusual Examples; 5. Optimize the parallel execution script to support displaying the execution process by Device in STest scenarios; ***Support parallel execution of STest/Example in Python scenarios*** 1. Fixed some use case DeviceId settings, from forcing the use of 0 cards, to obtaining them from the environment variable TILE_FWK_DEVICE_ID for multi card parallelism; 2. Revise the original Example parallel logic from using all available cards in the environment to supporting the device parameter specified by build_ci.py; 3. Migration of examples/models/conftest. py to the project root directory so that it can control the multi card parallelism of Stest and Examples; 4. Enhance the function of conftest. py, support specifying parallel execution case card parameters (-- device), support Worker to execute cases on the corresponding Device based on the assigned DeviceId, support modifying Worker and Case execution process names so that ps axf can accurately view task execution status; ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!36 | 10 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 | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
feat(Operation): Add argsort tileop Co-authored-by: chenbl<chenbinglin7@huawei.com> # message auto-generated for no-merge-commit merge: !811 merge argsort_assemble into master feat(Operation): Add argsort tileop Created-by: chenbl Commit-by: chenbl Merged-by: cann-robot Description: ## 描述 新增argsort接口,返回对输入按照指定轴进行升序或者降序排序后的下标。 当前为tile op版本。 ## 测试 A2上完成泛化用例测试 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!811 | 9 months ago | |
Initial commit | 10 months ago | |
feat(operation): BatchMatmul support view m and n Co-authored-by: yr12318<yangrui231@huawei.com> # message auto-generated for no-merge-commit merge: !1372 merge BMM into master feat(operation): BatchMatmul support view m and n Created-by: yr12318 Commit-by: yr12318 Merged-by: cann-robot Description: 新增BatchMatmul 支持view m、n轴的特性; Changes: 1. BatchMatmul cube业务代码的方案修改 2. pass相关适配。 3. 新增BatchMatmul的st用例 See merge request: cann/pypto!1372 | 8 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !680 merge and into master feat(operation): Add the BitwiseAnd/Ands/Or/Ors/Xor/Xors/Not methods Created-by: dingsinuo Commit-by: xiefangming Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(operation): Add the BitwiseAnd, BitwiseAnds, BitwiseOr, BitwiseOrs, BitwiseXor, BitwiseXors, BitwiseNot methods ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 在A2和A5上完成泛化用例测试 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!680 | 9 months ago | |
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 | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
refactor(config): Reimplement the interface of set_host_options, such as only_tensor_graph, only_host_compiled, and only_codegen. Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !287 merge local into master refactor(config): Reimplement the interface of set_host_options, such as only_tensor_graph, only_host_compiled, and only_codegen. Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: 重构set_host_option, 把配置项only_tensor_graph, only_host_compiled, 和only_codegen 整合为一个配置项compile_stage控制 且python前端 @pypto.jit使用原only_codegen做默认值(现compile_stage = pypto.CompStage.CODEGEN) See merge request: cann/pypto!287 | 10 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(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 | |
test(operation): Add operation st Co-authored-by: zhuhangjia<zhuhangjia1@huawei.com> # message auto-generated for no-merge-commit merge: !1491 merge master into master test(operation): Add operation st Created-by: zhuhangjia Commit-by: zhuhangjia Merged-by: cann-robot Description: 新增conv st 用例 See merge request: cann/pypto!1491 | 8 months ago | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
fix(operation): Fix CumSum int problem Co-authored-by: yang-fulai-3<yangfulai3@huawei.com> # message auto-generated for no-merge-commit merge: !493 merge fix/cumsum into master fix(operation): Fix CumSum int problem Created-by: yangfulai Commit-by: yang-fulai-3 Merged-by: cann-robot Description: fix(operation): Fix CumSum int problem See merge request: cann/pypto!493 | 10 months ago | |
feat(build): Optimize the parallel execution implementation of STest Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !36 merge master into master feat(build): Optimize the parallel execution implementation of STest Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ***Support C++ STest parallel execution*** 1. Remove redundant outputs for certain test cases during Golden comparison to reduce overall log size; 2. Adjust the maximum parallelism for Golden's parallel generation from 4 to 16; 3. Close the test cases that Golden fails to generate correctly; 4. Closing Part Unusual Examples; 5. Optimize the parallel execution script to support displaying the execution process by Device in STest scenarios; ***Support parallel execution of STest/Example in Python scenarios*** 1. Fixed some use case DeviceId settings, from forcing the use of 0 cards, to obtaining them from the environment variable TILE_FWK_DEVICE_ID for multi card parallelism; 2. Revise the original Example parallel logic from using all available cards in the environment to supporting the device parameter specified by build_ci.py; 3. Migration of examples/models/conftest. py to the project root directory so that it can control the multi card parallelism of Stest and Examples; 4. Enhance the function of conftest. py, support specifying parallel execution case card parameters (-- device), support Worker to execute cases on the corresponding Device based on the assigned DeviceId, support modifying Worker and Case execution process names so that ps axf can accurately view task execution status; ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!36 | 10 months ago | |
fix(machine): Add Dump Thread Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !1434 merge br_net into master fix(machine): Add Dump Thread Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 1、新增dump 线程,完成多轮perfData 性能数据的Dump 2、修改perfData 三级流水性能数打点数据没采集适配 See merge request: cann/pypto!1434 | 8 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
fix(frontend): Fix output tensor not updated correctly Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1695 merge fix_bug_2 into master fix(frontend): Fix output tensor not updated correctly Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 【fix】修复输出张量未正确更新的问题 1. 问题根因:原写法中 out.npu() 会生成临时 NPU 张量,kernel 实际修改的是临时对象,导致 out 始终为默认全0值 2. 修复方式: - 提前将 out 张量创建在 NPU 上(.npu() 赋值) - 直接传递 out 本身给 kernel,确保原地修改生效 3. 验证:assert 校验精度匹配,结果符合预期 See merge request: cann/pypto!1695 | 8 months ago | |
fix(front): Fix Reshape op infer shape Co-authored-by: liulufang_gitcode<liulufang1@hisilicon.com> # message auto-generated for no-merge-commit merge: !996 merge master into master fix(front): Fix Reshape op infer shape Created-by: liulufang_gitcode Commit-by: liulufang_gitcode Merged-by: cann-robot Description: Resolve the shape auto-inference problem when [-1] is passed as the argument to reshape. Related Issue: https://gitcode.com/cann/pypto/issues/321 See merge request: cann/pypto!996 | 9 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 | |
feat(operation): Add EXP2 operation Co-authored-by: lijunze<lijunze3@huawei.com> # message auto-generated for no-merge-commit merge: !1118 merge master into master feat(operation): Add EXP2 operation Created-by: lijunze Commit-by: lijunze Merged-by: cann-robot Description: PyPTO新增Exp2 Operation 完成Exp2 Operation开发+单元测试,覆盖率≥80%,门槛用例测试通过 Related Issue: https://gitcode.com/cann/pypto/issues/546 See merge request: cann/pypto!1118 | 8 months ago | |
feat(operation): Add Expm1 operation Co-authored-by: majiayuan<majiayuan1@huawei.com> # message auto-generated for no-merge-commit merge: !1132 merge master into master feat(operation): Add Expm1 operation Created-by: majiayuan Commit-by: majiayuan Merged-by: cann-robot Description: - PyPTO新增Expm1 Operation - 完成Expm1 Operation开发+单元测试,覆盖率≥80%,门槛用例测试通过 - Related Issue: [Task|任务跟踪: PyPTO新增Expm1 Operation](https://gitcode.com/cann/pypto/issues/524) See merge request: cann/pypto!1132 | 8 months ago | |
feat(operation): Add fillpad operation Co-authored-by: gguuaanngg<zhangguangjun2@huawei.com> # message auto-generated for no-merge-commit merge: !1661 merge FillPad_test into master feat(operation): Add fillpad operation Created-by: wkkk0528 Commit-by: gguuaanngg Merged-by: cann-robot Description: 增加fillpad operation See merge request: cann/pypto!1661 | 8 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
feat(operation): Add new operation gcd Co-authored-by: yang-fulai-3<yangfulai3@huawei.com> # message auto-generated for no-merge-commit merge: !913 merge gcd into master feat(operation): Add new operation gcd Created-by: yangfulai Commit-by: yang-fulai-3 Merged-by: cann-robot Description: feat(operation): Add new operation gcd See merge request: cann/pypto!913 | 8 months ago | |
feat(operation): Add new operation gcd Co-authored-by: yang-fulai-3<yangfulai3@huawei.com> # message auto-generated for no-merge-commit merge: !913 merge gcd into master feat(operation): Add new operation gcd Created-by: yangfulai Commit-by: yang-fulai-3 Merged-by: cann-robot Description: feat(operation): Add new operation gcd See merge request: cann/pypto!913 | 8 months ago | |
Initial commit | 10 months ago | |
feat(operation): Add Hypot operation Co-authored-by: 姜昊<jianghao131@huawei.com> # message auto-generated for no-merge-commit merge: !958 merge master into master feat(operation): Add Hypot operation Created-by: handsomejnn Commit-by: 姜昊 Merged-by: cann-robot Description: ## # **描述** 新增Hypot 特性 ## # 测试 已通过所有ST用例以及泛化用例 See merge request: cann/pypto!958 | 8 months ago | |
fix(Operation): Fix indexadd inplace python interface Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !848 merge fix/indexadd_py into master fix(Operation): Fix indexadd inplace python interface Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 修复indexadd算子原地调用的python接口,删除c++冗余代码,增加了triu_/tril_的原地调用方法。 See merge request: cann/pypto!848 | 9 months ago | |
feat(operation): Add IndexPut_ Co-authored-by: liusiwei5<liusiwei5@huawei.com> # message auto-generated for no-merge-commit merge: !107 merge indexput into master feat(operation): Add IndexPut_ Created-by: Vivia Commit-by: liusiwei5 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增IndexPut_算子,原地操作 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!107 | 10 months ago | |
fix(machine): Suitable swim lane Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !303 merge master into master fix(machine): Suitable swim lane Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 1、适配三级流水,profiling采集 2、config 字段描述信息补全 3、prof D2H 新老接口兼容 See merge request: cann/pypto!303 | 9 months ago | |
fix(config): Config support jit scope Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1526 merge config_fix into master fix(config): Config support jit scope Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: Use pypto.options("jit_scope") for JIT compilation so config is correctly scoped and restored. When JIT omits debug_options, inherit them from the global config. See merge request: cann/pypto!1526 | 8 months ago | |
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 | |
feat(Operation): Add Log1p operation Co-authored-by: Apricityh<wangxu359@huawei.com> # message auto-generated for no-merge-commit merge: !1120 merge Tlog_dev into master feat(Operation): Add Log1p operation Created-by: Apricityh Commit-by: Apricityh Merged-by: cann-robot Description: Add Log1p, Log10, and Log2 operations See merge request: cann/pypto!1120 | 8 months ago | |
feat(Operation): Add Log1p operation Co-authored-by: Apricityh<wangxu359@huawei.com> # message auto-generated for no-merge-commit merge: !1120 merge Tlog_dev into master feat(Operation): Add Log1p operation Created-by: Apricityh Commit-by: Apricityh Merged-by: cann-robot Description: Add Log1p, Log10, and Log2 operations See merge request: cann/pypto!1120 | 8 months ago | |
feat(Operation): Add Log1p operation Co-authored-by: Apricityh<wangxu359@huawei.com> # message auto-generated for no-merge-commit merge: !1120 merge Tlog_dev into master feat(Operation): Add Log1p operation Created-by: Apricityh Commit-by: Apricityh Merged-by: cann-robot Description: Add Log1p, Log10, and Log2 operations See merge request: cann/pypto!1120 | 8 months ago | |
feat(Operation): Support new operation LReLU Co-authored-by: lijunze<lijunze3@huawei.com> # message auto-generated for no-merge-commit merge: !1101 merge add_LReLU into master feat(Operation): Support new operation LReLU Created-by: raoliang_sac Commit-by: lijunze Merged-by: cann-robot Description: 新增operation LReLU: ## 功能说明 对输入张量逐元素应用 Leaky ReLU(带泄漏的线性整流函数)激活函数。计算公式如下:  See merge request: cann/pypto!1101 | 8 months ago | |
fix(operation): Remove the enable_multi_data_load input parameter from the Matmul interface. Co-authored-by: chen-yongkang16<chenyongkang16@huawei.com> # message auto-generated for no-merge-commit merge: !1942 merge remove_db into master fix(operation): Remove the enable_multi_data_load input parameter from the Matmul interface. Created-by: chen-yongkang16 Commit-by: chen-yongkang16 Merged-by: cann-robot Description: 删除Matmul接口中set_cube_tile的enable_multi_data_load See merge request: cann/pypto!1942 | 8 months ago | |
Initial commit | 10 months ago | |
Initial commit | 10 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
Initial commit | 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 | |
feat(config): A3&A5 use the same config Co-authored-by: yyyfff<yefan29@huawei.com> # message auto-generated for no-merge-commit merge: !1184 merge master into master feat(config): A3&A5 use the same config Created-by: yyyfff Commit-by: yyyfff Merged-by: cann-robot Description: feat(config): A3&A5 use the same config See merge request: cann/pypto!1184 | 8 months ago | |
Initial commit | 10 months ago | |
feat(pass): Option deprecated. Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !1414 merge option-models into master feat(pass): Option deprecated. Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: 旋钮修改 1)python侧api下线:pg_parallel_lower_bound、mg_vec_parallel_lb 2)后端mg_copyin_upper_bound默认值调整至100M See merge request: cann/pypto!1414 | 8 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 | |
feat(Operation): Add pad operation Co-authored-by: gguuaanngg<zhangguangjun2@huawei.com> # message auto-generated for no-merge-commit merge: !1445 merge master into master feat(Operation): Add pad operation Created-by: gguuaanngg Commit-by: gguuaanngg Merged-by: cann-robot Description: 支持pad operation See merge request: cann/pypto!1445 | 8 months ago | |
feat(operation): Add Pow Calculate Between Two Tensors. Co-authored-by: Creeeeper<liuyizhe6@huawei.com> # message auto-generated for no-merge-commit merge: !900 merge pow-v2 into master feat(operation): Add Pow Calculate Between Two Tensors. Created-by: Creeeeper Commit-by: Creeeeper Merged-by: cann-robot Description: ## 描述 新增输入为两个Tensor的Pow接口 Tensor Pow(const Tensor &self, const Tensor &other) ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!900 | 9 months ago | |
feat(Operation): Add PReLU OP Co-authored-by: 陈展熹<chenzhanxi1@huawei.com> # message auto-generated for no-merge-commit merge: !1142 merge prelu into master feat(Operation): Add PReLU OP Created-by: yourealize Commit-by: 陈展熹 Merged-by: cann-robot Description: 新增PReLU算子 算子功能 输入Weight中的第n个值,对应了输入中对应channel n的缩放系数α。 假设operand输入shape为[B, C, M, N],weight的shape对应为[C]。 对于一个channel,计算表达式为: $$ res_i = \begin{cases} input_i & \text{if } input_i \geq 0 \\ weight_i \times input_i & \text{if } input_i < 0 \end{cases} $$ 完成Exp2 Operation开发+单元测试,门槛测试用例全部通过。关联Issue [#562](https://gitcode.com/cann/pypto/issues/562) See merge request: cann/pypto!1142 | 8 months ago | |
feat(operation): Add the Prod method Co-authored-by: dingsinuo<dingsinuo@huawei.com> # message auto-generated for no-merge-commit merge: !1247 merge reprod into master feat(operation): Add the Prod method Created-by: dingsinuo Commit-by: dingsinuo Merged-by: cann-robot Description: 增加prod算子 See merge request: cann/pypto!1247 | 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 | |
feat(interface): Add Treciprocal Co-authored-by: 姜昊<jianghao131@huawei.com> # message auto-generated for no-merge-commit merge: !749 merge master into master feat(interface): Add Treciprocal Created-by: handsomejnn Commit-by: 姜昊 Merged-by: cann-robot Description: ## # **描述** 新增Reciprocal 特性 ## # 测试 已通过所有泛化用例 See merge request: cann/pypto!749 | 9 months ago | |
feat(Operation): Add relu operation Co-authored-by: 姜昊<jianghao131@huawei.com> # message auto-generated for no-merge-commit merge: !849 merge master into master feat(Operation): Add relu operation Created-by: handsomejnn Commit-by: 姜昊 Merged-by: cann-robot Description: ## # **描述** 新增ReLu 特性 ## # 测试 已通过所有泛化用例以及ST用例 See merge request: cann/pypto!849 | 9 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 | |
feat(operation): Add Round operation Co-authored-by: majiayuan<majiayuan1@huawei.com> # message auto-generated for no-merge-commit merge: !356 merge master into master feat(operation): Add Round operation Created-by: majiayuan Commit-by: majiayuan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> Add Round operation ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!356 | 9 months ago | |
Initial commit | 10 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
feat(operation): Add BitwiseShift operation Co-authored-by: xiefangming<xiefangming@huawei.com> # message auto-generated for no-merge-commit merge: !588 merge bitwiseshiftplanb into master feat(operation): Add BitwiseShift operation Created-by: xiefangming Commit-by: xiefangming Merged-by: cann-robot Description: Add BitwiseRightShift and BitwiseLeftShift operation See merge request: cann/pypto!588 | 9 months ago | |
fix(operation): Fix scatter inplace interface function Co-authored-by: liuyang454<liuyang454@huawei.com> # message auto-generated for no-merge-commit merge: !523 merge debug0 into master fix(operation): Fix scatter inplace interface function Created-by: liuyang454 Commit-by: liuyang454 Merged-by: cann-robot Description: Scatter_ cpp interface is fake inplace operation, we support inplace scatter_ in python interface See merge request: cann/pypto!523 | 10 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
feat(Operation): Add Sign OP Co-authored-by: 陈展熹<chenzhanxi1@huawei.com> # message auto-generated for no-merge-commit merge: !967 merge sign into master feat(Operation): Add Sign OP Created-by: yourealize Commit-by: 陈展熹 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 规范](https://gitcode.com/cann/pypto/blob/master/docs/contribute/pull-request.md#commit-message) See merge request: cann/pypto!967 | 8 months ago | |
feat(Operation): Support new operation signbit Co-authored-by: raoliang_sac<raoliang4@huawei.com> # message auto-generated for no-merge-commit merge: !1181 merge signbit_trae into master feat(Operation): Support new operation signbit Created-by: raoliang_sac Commit-by: raoliang_sac Merged-by: cann-robot Description: 新增operation signbit: 功能描述 输入数据中的正数对应输出为False,负数对应输出为True。 表达式:  接口定义 Tensor Signbit(const Tensor &operand) 参数说明 输入: operand:输入Tensor,数据类型支持float16、bfloat16、float32、int8、 uint8、int16、int32、 bool,数据格式支持ND,支持shape和设置TileShape非对齐。 输出: Tensor:数据类型为bool、shape与operand相同 约束:数据类型仅支持float16、bfloat16、float32、int8、 uint8、int16、int32、 bool See merge request: cann/pypto!1181 | 8 months ago | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !50 merge refactor/datatype into master refactor(python): Change pypto.DatatType.DT_* to pypto.DT_* Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Change pypto.DatatType.DT_* to pypto.DT_* See merge request: cann/pypto!50 | 10 months ago | |
fix(config): Fix swim lane by moving JitScopeGuard to runtime Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1772 merge fix_swim_1 into master fix(config): Fix swim lane by moving JitScopeGuard to runtime Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 问题描述 新前端 JIT 中,jit_scope 只在 Python 侧编译时生效,而上板在 C++ 侧执行,导致 runtime_debug_mode 等配置在编译期和运行期读取不一致,泳道图无法正确生成。 ## 解决方案 在 C++ runtime.cpp 的 DoLaunch 中管理 jit_scope,在触发编译时创建并激活,使相关配置在编译到上板的完整 JIT 流程中保持生效。 See merge request: cann/pypto!1772 | 8 months ago | |
Initial commit | 10 months ago | |
feat(operation): Add Ceil&Floor&Trunc operation Co-authored-by: guoliwei<guoliwei10@huawei.com> # message auto-generated for no-merge-commit merge: !384 merge master into master feat(operation): Add Ceil&Floor&Trunc operation Created-by: lijunze Commit-by: guoliwei Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!384 | 9 months ago | |
fix(Operation): Fix indexadd inplace python interface Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !848 merge fix/indexadd_py into master fix(Operation): Fix indexadd inplace python interface Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 修复indexadd算子原地调用的python接口,删除c++冗余代码,增加了triu_/tril_的原地调用方法。 See merge request: cann/pypto!848 | 9 months ago | |
fix(pass): RemoveRedundantReshape adds Postcheck Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !776 merge master into master fix(pass): RemoveRedundantReshape adds Postcheck Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: RemoveRedundantReshape Pass添加Postcheck 增加检查功能 See merge request: cann/pypto!776 | 9 months ago | |
feat(operation): Support Variance operation Co-authored-by: liuyang454<liuyang454@huawei.com> # message auto-generated for no-merge-commit merge: !955 merge debug0 into master feat(operation): Support Variance operation Created-by: liuyang454 Commit-by: liuyang454 Merged-by: cann-robot Description: 新增operation支持var方差计算 See merge request: cann/pypto!955 | 8 months ago | |
Initial commit | 10 months ago | |
feat(operation): Add Ceil&Floor&Trunc operation Co-authored-by: guoliwei<guoliwei10@huawei.com> # message auto-generated for no-merge-commit merge: !384 merge master into master feat(operation): Add Ceil&Floor&Trunc operation Created-by: lijunze Commit-by: guoliwei Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!384 | 9 months ago | |
Initial commit | 10 months ago | |
fix(operation): Fix scatter inplace interface function Co-authored-by: liuyang454<liuyang454@huawei.com> # message auto-generated for no-merge-commit merge: !523 merge debug0 into master fix(operation): Fix scatter inplace interface function Created-by: liuyang454 Commit-by: liuyang454 Merged-by: cann-robot Description: Scatter_ cpp interface is fake inplace operation, we support inplace scatter_ in python interface See merge request: cann/pypto!523 | 10 months ago | |
typo fix Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !25 merge typo-fix_ into master typo fix Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 描述 修复一些拼写错误,还有clip的接口错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 修复了拼写错误,以及函数签名。完成冒烟测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!25 | 10 months ago | |
Initial commit | 10 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 9 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago |