| Files | Last commit | Last update |
|---|---|---|
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
ReduceRepeat 场景 2 的校验脚本会漏报错误索引 Co-authored-by: xchencehn<13260020301@163.com> # message auto-generated for no-merge-commit merge: !6577 merge pr_6238 into master ReduceRepeat 场景 2 的校验脚本会漏报错误索引 Created-by: printfscanfmain Commit-by: xchencehn Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 修复 ReduceRepeat 示例结果校验脚本( verify_result.py)中场景 2(reduce_repeat)的比对逻辑。原实现仅按数值容差比较 FP16 值,未校验每条记录中携带的 uint16 索引,导致索引错误的结果可能被误判为通过。 改动方法: - 以字节方式读取结果文件,场景 1 记录大小为 2 字节、其余为 4 字节;在比对前校验 output/golden 长度一致且为非空、长度为记录大小整数倍,非法时抛出 ValueError。 - 场景 2 额外提取每条记录的 uint16 索引([1::2]),逐一精确比较;索引不一致时打印最多 100 行明细并返回失败;索引一致后再对数值部分([::2])按原有容差比较。 - 新增 test_verify_result.py,覆盖各场景退出码与通过提示,包含索引错误、数值容差、文件截断/多余记录/尾部字节、空文件等边界用例。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> [#1746](https://gitcode.com/cann/asc-devkit/issues/1746) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 新增 pytest 用例 test_verify_result.py,通过参数化方式验证 verify_result.py 在各场景(1/2/3/4)下的退出码与 "test pass!" 输出,覆盖索引不一致、数值超容差、记录数量不匹配、截断/多余/尾部字节、空文件等边界情况。  ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 无 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6577 | 1 month ago | |
fix example matmul_fp8 gen_data.py Co-authored-by: myx_32<mayuxin6@huawei.com> # message auto-generated for no-merge-commit merge: !6588 merge dev-mm into master fix example matmul_fp8 gen_data.py Created-by: myx_32 Commit-by: myx_32 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 清理matmul_fp8用例中,gen_data.py中多余的部分 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> [#1825](https://gitcode.com/cann/asc-devkit/issues/1825) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6588 | 1 month ago | |
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
docs: 按产品名称映射表统一产品名称(样例) Co-authored-by: munanhw<munan@huawei.com> # message auto-generated for no-merge-commit merge: !6571 merge docs/product-name-examples into master docs: 按产品名称映射表统一产品名称(样例) Created-by: munanhw Commit-by: munanhw Merged-by: cann-robot Description: ## 描述 从 #6524 拆分:examples/ 目录下全部样例文档(856 个文件,中英文 README 成对同步修改) 整改规则(依据产品名称映射表): - Ascend 950PR/Ascend 950DT 系列(含衍生/简写/带空格斜杠变体)统一为 Ascend 950PR&950DT系列产品(英文:Ascend 950PR&950DT products) - Atlas A2/A3 训练系列产品与推理系列产品合并为 Atlas A2系列产品 / Atlas A3系列产品(英文:Atlas A2/A3 products) - Atlas 200I/500 A2 推理产品、Atlas 推理/训练系列产品(含 AI Core / Vector Core 场景)去空格 - 同名并列对按合并语义收敛为单一规范名(如 Atlas A3 products/Atlas A3 products -> Atlas A3 products) ## 关联的Issue 无 ## 测试 - 全量改动已在 #6524 上通过完整 CI(compile 流水线 ci-pipeline-passed),本 PR 为其按目录拆分的等价子集 - 旧名称形式残留为 0、叠字残留为 0;图片路径与文件链接未做任何改动 ## 文档更新 本 PR 为文档产品名称整改 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6571 | 1 month ago | |
example_tensor_api_snake Co-authored-by: watermelon_milk<NSvQ5oaBy439Dy3ewqp32tDq> # message auto-generated for no-merge-commit merge: !5071 merge tensor_snake into master example_tensor_api_snake Created-by: watermelon_milk Commit-by: watermelon_milk Merged-by: cann-robot Description: ## 描述 example样例切换snake风格 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5071 | 2 months ago | |
example_tensor_api_snake Co-authored-by: watermelon_milk<NSvQ5oaBy439Dy3ewqp32tDq> # message auto-generated for no-merge-commit merge: !5071 merge tensor_snake into master example_tensor_api_snake Created-by: watermelon_milk Commit-by: watermelon_milk Merged-by: cann-robot Description: ## 描述 example样例切换snake风格 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5071 | 2 months ago |
Sample List
| Directory Name | Description |
|---|---|
| 00_introduction | Simple examples based on Ascend C, implementing custom functions through Ascend C programming language, with corresponding <<<>>> direct invocation implementations |
| 01_utilities | Simple examples based on Ascend C, introducing system tool usage methods such as on-board printing, exception detection, and CPU twin debugging through APIs like printf, assert, and DumpTensor, suitable for debugging phases |
| 02_features | Feature examples based on Ascend C, introducing features such as Aclnn (ge graph entry) projects, LocalMemAllocator, and separate memory allocation for Barrier |
| 03_basic_api | Basic API examples based on Ascend C, introducing usage methods of basic APIs such as data movement and computation |
| 04_advanced_api | Usage examples based on Ascend C API libraries, introducing API libraries such as math libraries and activation functions through <<<>>> direct invocation implementations |
| 05_best_practices | Performance optimization practices based on Ascend C, focusing on key compute and memory access tuning, aimed at improving runtime efficiency on Ascend platforms |
| 06_compatibility_guide | Compatibility examples for incompatible features |
| 07_tensor_api | Tensor API programming samples covering data movement, matrix computation, convolution, and high-performance matrix multiplication practices |