| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
同步tensor_api分支代码到master Co-authored-by: hw-zjy<zhoujingyi9@hisilicon.com> Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !1103 merge master into master 同步tensor_api分支代码到master Created-by: haipingmao Commit-by: haipingmao;hw-zjy Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本单代码旨在推出一套全新的 Tensor API 接口。该 API 基于 AscendC 提供了一套 C++ 模板抽象库,专门面向层次化多维数据布局的定义与操作进行设计。使用该接口,开发者可专注于算法逻辑的表达,无需关注底层内存布局细节,使其在昇腾 AI 处理器的高性能计算场景中,能够获得与业界标准一致的开发体验。 目前,Tensor API提供了(3510版): - Cube数据搬运类接口 如 DataCopy、LoadData和Fixpipe接口。 - Cube数据计算类接口 如 Mmad接口。 - 公共数据结构的定义和接口 如 Layout、Tensor、MakeXXXLayout等。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联Issue [#320](https://gitcode.com/cann/asc-devkit/issues/320) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1103 | 6 个月前 | |
修复Tensor API GM2L1 ND2ND 1D场景 Co-authored-by: wuyang_hw<wuyang74@hisilicon.com> # message auto-generated for no-merge-commit merge: !1227 merge tensor_api_gm2l1_master into master 修复Tensor API GM2L1 ND2ND 1D场景 Created-by: wuyang_hw Commit-by: wuyang_hw Merged-by: cann-robot Description: ## 描述 在NPU 3510架构的GM到L1数据复制功能中,当处理1D张量时存在维度判断不完整的问题。原先的实现只检查行维度为1的情况( srcShapeRows == 1),忽略了列维度为1的场景(srcShapeColumns == 1),导致某些1D张量复制操作无法正确执行。 ### 解决方案 - 在nd2nd.h:81中扩展compact mode判断条件,支持srcShapeColumns == 1的情况 - 在nd2nd_onedim.h中重写数据复制逻辑,正确计算行和列维度的总长度 - 在check_data_type_3510.h中修改静态断言,允许行或列任一维度为1 - 在is_format.h中更新IsFractalNDFormatOneDim()方法,支持两种1D张量格式 - 在nz2nz.h中使用更精确的数据类型检查函数 ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/353 ## 测试 - 扩展测试用例覆盖多种1D张量场景(行维度为1、列维度为1) - 添加多种数据类型(uint8_t, uint16_t, float, uint64_t等)的测试 - 验证连续和非连续1D张量复制功能 - 添加ND2ND1DimInt测试用例,支持编译时常量维度 ## 文档更新 NA ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1227 | 6 个月前 | |
同步tensor_api分支代码到master Co-authored-by: hw-zjy<zhoujingyi9@hisilicon.com> Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !1103 merge master into master 同步tensor_api分支代码到master Created-by: haipingmao Commit-by: haipingmao;hw-zjy Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本单代码旨在推出一套全新的 Tensor API 接口。该 API 基于 AscendC 提供了一套 C++ 模板抽象库,专门面向层次化多维数据布局的定义与操作进行设计。使用该接口,开发者可专注于算法逻辑的表达,无需关注底层内存布局细节,使其在昇腾 AI 处理器的高性能计算场景中,能够获得与业界标准一致的开发体验。 目前,Tensor API提供了(3510版): - Cube数据搬运类接口 如 DataCopy、LoadData和Fixpipe接口。 - Cube数据计算类接口 如 Mmad接口。 - 公共数据结构的定义和接口 如 Layout、Tensor、MakeXXXLayout等。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联Issue [#320](https://gitcode.com/cann/asc-devkit/issues/320) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1103 | 6 个月前 | |
同步tensor_api分支代码到master Co-authored-by: hw-zjy<zhoujingyi9@hisilicon.com> Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !1103 merge master into master 同步tensor_api分支代码到master Created-by: haipingmao Commit-by: haipingmao;hw-zjy Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本单代码旨在推出一套全新的 Tensor API 接口。该 API 基于 AscendC 提供了一套 C++ 模板抽象库,专门面向层次化多维数据布局的定义与操作进行设计。使用该接口,开发者可专注于算法逻辑的表达,无需关注底层内存布局细节,使其在昇腾 AI 处理器的高性能计算场景中,能够获得与业界标准一致的开发体验。 目前,Tensor API提供了(3510版): - Cube数据搬运类接口 如 DataCopy、LoadData和Fixpipe接口。 - Cube数据计算类接口 如 Mmad接口。 - 公共数据结构的定义和接口 如 Layout、Tensor、MakeXXXLayout等。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联Issue [#320](https://gitcode.com/cann/asc-devkit/issues/320) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1103 | 6 个月前 | |
归一Hardware定义 Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !895 merge master into master 归一Hardware定义 Created-by: haipingmao Commit-by: haipingmao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 当前basic_api/tensor_api/debug中定义了多个完全重复的Hardware,需要将其归一。 修改后运行UT时会出现重复定义问题,这是因为tensor_api UT中引入了基础API的内容,本单代码的作用就是 - 将这些重复定义的Hardware全部删除,仅在impl/utils/common_types.h中保留一份,其余文件均引用该处定义。 - 修复tensor_api错误包含的问题。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联的Issue: [#284](https://gitcode.com/cann/asc-devkit/issues/284) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT测试,二级冒烟。 **UT测试结果(部分)** [2026/03/17 16:22:59.965 GMT+08:00] [----------] 7 tests from Tensor_Api_Layout [2026/03/17 16:22:59.965 GMT+08:00] [ RUN ] Tensor_Api_Layout.ShapeAndStrideOperation [2026/03/17 16:22:59.965 GMT+08:00] [ OK ] Tensor_Api_Layout.ShapeAndStrideOperation (0 ms) [2026/03/17 16:22:59.965 GMT+08:00] [ RUN ] Tensor_Api_Layout.IsTupleOperation [2026/03/17 16:22:59.965 GMT+08:00] [ OK ] Tensor_Api_Layout.IsTupleOperation (0 ms) [2026/03/17 16:22:59.965 GMT+08:00] [ RUN ] Tensor_Api_Layout.LayoutOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Layout.LayoutOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Layout.IsLayoutOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Layout.IsLayoutOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Layout.MakeLayoutByShapeOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Layout.MakeLayoutByShapeOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Layout.LayoutSizeOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Layout.LayoutSizeOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Layout.StaticLayoutOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Layout.StaticLayoutOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [----------] 7 tests from Tensor_Api_Layout (0 ms total) [2026/03/17 16:22:59.966 GMT+08:00] [2026/03/17 16:22:59.966 GMT+08:00] [----------] 3 tests from Tensor_Api_Atom [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Atom.CopyGM2L1Operation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Atom.CopyGM2L1Operation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Atom.CopyL12L0Operation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Atom.CopyL12L0Operation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [ RUN ] Tensor_Api_Atom.CopyL0C2GMOperation [2026/03/17 16:22:59.966 GMT+08:00] [ OK ] Tensor_Api_Atom.CopyL0C2GMOperation (0 ms) [2026/03/17 16:22:59.966 GMT+08:00] [----------] 3 tests from Tensor_Api_Atom (0 ms total) **样例测试结果(部分)** [test_case.py:558]: [SUCCESS] testcase: kernel_power_operator_half_12288_0_1 [SUCCESS] All 45 testcases succeeded. ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [x] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!895 | 7 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 7 个月前 |