| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(ge): 修复课程内容与实践验收问题 Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !545 merge fix/ge-course-issues-304-492 into test fix(ge): 修复课程内容与实践验收问题 Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 修复 GE 图引擎开发系列教程中 10 个课程反馈问题,覆盖实践验收、错误状态传播、章节/目录引用、配图使用以及 Python ES 复杂算子示例。 主要改动: - 强化 01.04 拓扑排序实践验收:检查乱序图、精确拓扑序、节点结构、环检测及静动态 Shape。 - 修正 02.04 两项实践的退出码,并校验离线编译四阶段、模型缓冲区和非空 OM 产物。 - 保留并传播 PrintModelOutputs 失败状态,清理资源后返回非零。 - 将实践目录统一为 Sources/02.02、Sources/02.03。 - 修正 02.03 中 10 处 sample_dynmaic_batch 拼写和上游样例链接。 - 修正动态 Shape、自定义算子以及离线样例的章节、函数名和接口语言描述。 - 在正文引用 ascendir_elements.svg、capability_interfaces.svg。 - 新增经 Ascend 910 + CANN 9.0 真机验证的 Python ES MatMul 示例,并补充 MatMulV3 shape/dtype 推导错误排查。 ## 关联的Issue https://gitcode.com/cann/cann-learning-hub/issues/393 https://gitcode.com/cann/cann-learning-hub/issues/376 https://gitcode.com/cann/cann-learning-hub/issues/304 https://gitcode.com/cann/cann-learning-hub/issues/305 https://gitcode.com/cann/cann-learning-hub/issues/306 https://gitcode.com/cann/cann-learning-hub/issues/315 https://gitcode.com/cann/cann-learning-hub/issues/317 https://gitcode.com/cann/cann-learning-hub/issues/450 https://gitcode.com/cann/cann-learning-hub/issues/415 https://gitcode.com/cann/cann-learning-hub/issues/492 ## 测试 - 21 个 GE Notebook 均可正常 JSON 解析;9 个修改 Notebook 通过 jq empty。 - git diff --check 通过。 - 01.04 未完成拓扑排序时退出码为 1,完整实现及参考答案返回 0。 - 拓扑验收异常回归:主图成功但乱序合法 DAG 抛异常时返回 1,正确 Kahn 实现返回 0。 - 02.04 两个未完成骨架均返回 1;参考答案返回 0,并生成非空 OM 测试产物。 - C++ 参考答案通过 g++ -std=c++17 -Wall -Wextra -Werror。 - Python ES MatMul 在 Ascend 910 + CANN 9.0 上执行通过,输出与 NumPy 一致:[[38, 44, 50, 56], [83, 98, 113, 128]]。 - 40 张 GE 教程 SVG 资源均已有正文引用,修改后的相对链接均可达。 - sample_dynmaic_batch 遗留为 0,正确上游链接返回 HTTP 200。 ## 文档更新 更新 GE 第一至第三章相关 Notebook 和两份章节实践参考答案。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [x] 内容优化 - [ ] 其他,请描述: ## 其他信息 本 PR 基于最新 test 分支,仅包含本组 GE 课程问题修复提交。 See merge request: cann/cann-learning-hub!545 | 6 天前 | |
docs(ge): 第一章 快速入门(仅 ge_development,基于 test 重建) Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !216 merge ge-quick-start-test into test docs(ge): 第一章 快速入门(仅 ge_development,基于 test 重建) Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 新增 GE 图引擎开发系列教程「第一章 快速入门」,面向 **test 分支内测**。本分支基于 test 重建,**仅包含 ge_development 相关改动**(取代旧 PR #215,后者误含 master 相对 test 的全部差异)。内容包括: - 基础概念入门(GE 全栈定位、两大职责、编译四阶段、模型下沉调度、AscendIR 构图) - 推理流程介绍(离线 ATC+ACL、在线 GeSession,含可落盘运行的 C++ 样例) - 教程总览 README(按系列/章组织 + 能力分层设计表)、各模块 README - 每章综合编程实践题(C++)与参考答案,配图统一居左 **改动范围**:tutorials/ge_development/(62 文件)+ 课程登记入口(根 README.md、tutorials/README.md、.gitignore 新增 Sources/、*.onnx)。 ## 测试 - 概念/练习 notebook 含判题;C++ 综合实践(01.04 AscendIR 模型、02.04 对拍基准)已用 g++ 9.4 本地编译运行通过。 - 离线/在线 C++ 样例需昇腾环境编译运行,待 test 内测在 learning-hub 在线体验环境 + CANNLab 云环境验证。 ## 其他信息 - 目标分支:**test(内测)**;对应 master PR 见 #210。 - 风险与兼容性:纯新增 tutorials/ge_development 目录 + 课程登记入口,不改动现有课程内容,无兼容性影响。 - 回滚方案:revert 本 PR 合入的 commit 即可。 See merge request: cann/cann-learning-hub!216 | 1 个月前 | |
修改jupyter适配问题 Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !287 merge ge-quick-start-test into test 修改jupyter适配问题 Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 本次修改主要修复 GE 快速入门教程在 Jupyter 环境中的适配问题,提升 notebook 单元按顺序执行时的稳定性和展示效果。 主要变更: - 修正多个 notebook 中 answer 目录的引用路径,去掉 ./answer,避免部分 Jupyter 运行环境下相对路径解析异常。 - 在实践类 notebook 中补充 Sources 目录创建步骤,避免首次运行写入源码文件时因目录不存在失败。 - 优化 02.03_online_execution.ipynb 的 ResNet50 模型下载逻辑,增加多个下载源、失败重试和不完整文件检查。 - 增加 ImageNet 标签文件下载与解析,Top-5 输出从仅展示类别索引优化为展示类别名称、索引和分数。 - 精简 01.01_chapter_intro.ipynb 中过长的 AscendIR 概念描述,降低章节导读阅读负担。 ## 关联的Issue 暂无 ## 测试 已完成以下检查: - 使用 jq empty 校验本次修改的 7 个 notebook 均为合法 JSON。 - 检查 tutorials/ge_development 相关目录中已无 ./answer 旧路径引用。 - 检查新增的 mkdir -p Sources/...、模型多源下载、ImageNet 标签加载和 Top-5 展示逻辑已写入对应 notebook。 未在昇腾 NPU 环境中完整执行端到端推理流程。 ## 文档更新 更新以下 GE 教程 notebook: - tutorials/ge_development/01_basic_concepts/01.01_chapter_intro.ipynb - tutorials/ge_development/01_basic_concepts/01.02_ge_overview.ipynb - tutorials/ge_development/01_basic_concepts/01.03_ascend_ir.ipynb - tutorials/ge_development/01_basic_concepts/01.04_chapter_practice.ipynb - tutorials/ge_development/02_inference_workflow/02.02_offline_inference.ipynb - tutorials/ge_development/02_inference_workflow/02.03_online_execution.ipynb - tutorials/ge_development/02_inference_workflow/02.04_chapter_practice.ipynb ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [x] 内容优化 - [ ] 其他,请描述: ## 其他信息 本次变更仅涉及教程 notebook 内容,不涉及项目源码接口变更。 See merge request: cann/cann-learning-hub!287 | 1 个月前 | |
fix(ge): 修复课程内容与实践验收问题 Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !545 merge fix/ge-course-issues-304-492 into test fix(ge): 修复课程内容与实践验收问题 Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 修复 GE 图引擎开发系列教程中 10 个课程反馈问题,覆盖实践验收、错误状态传播、章节/目录引用、配图使用以及 Python ES 复杂算子示例。 主要改动: - 强化 01.04 拓扑排序实践验收:检查乱序图、精确拓扑序、节点结构、环检测及静动态 Shape。 - 修正 02.04 两项实践的退出码,并校验离线编译四阶段、模型缓冲区和非空 OM 产物。 - 保留并传播 PrintModelOutputs 失败状态,清理资源后返回非零。 - 将实践目录统一为 Sources/02.02、Sources/02.03。 - 修正 02.03 中 10 处 sample_dynmaic_batch 拼写和上游样例链接。 - 修正动态 Shape、自定义算子以及离线样例的章节、函数名和接口语言描述。 - 在正文引用 ascendir_elements.svg、capability_interfaces.svg。 - 新增经 Ascend 910 + CANN 9.0 真机验证的 Python ES MatMul 示例,并补充 MatMulV3 shape/dtype 推导错误排查。 ## 关联的Issue https://gitcode.com/cann/cann-learning-hub/issues/393 https://gitcode.com/cann/cann-learning-hub/issues/376 https://gitcode.com/cann/cann-learning-hub/issues/304 https://gitcode.com/cann/cann-learning-hub/issues/305 https://gitcode.com/cann/cann-learning-hub/issues/306 https://gitcode.com/cann/cann-learning-hub/issues/315 https://gitcode.com/cann/cann-learning-hub/issues/317 https://gitcode.com/cann/cann-learning-hub/issues/450 https://gitcode.com/cann/cann-learning-hub/issues/415 https://gitcode.com/cann/cann-learning-hub/issues/492 ## 测试 - 21 个 GE Notebook 均可正常 JSON 解析;9 个修改 Notebook 通过 jq empty。 - git diff --check 通过。 - 01.04 未完成拓扑排序时退出码为 1,完整实现及参考答案返回 0。 - 拓扑验收异常回归:主图成功但乱序合法 DAG 抛异常时返回 1,正确 Kahn 实现返回 0。 - 02.04 两个未完成骨架均返回 1;参考答案返回 0,并生成非空 OM 测试产物。 - C++ 参考答案通过 g++ -std=c++17 -Wall -Wextra -Werror。 - Python ES MatMul 在 Ascend 910 + CANN 9.0 上执行通过,输出与 NumPy 一致:[[38, 44, 50, 56], [83, 98, 113, 128]]。 - 40 张 GE 教程 SVG 资源均已有正文引用,修改后的相对链接均可达。 - sample_dynmaic_batch 遗留为 0,正确上游链接返回 HTTP 200。 ## 文档更新 更新 GE 第一至第三章相关 Notebook 和两份章节实践参考答案。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [x] 内容优化 - [ ] 其他,请描述: ## 其他信息 本 PR 基于最新 test 分支,仅包含本组 GE 课程问题修复提交。 See merge request: cann/cann-learning-hub!545 | 6 天前 | |
fix(ge): 修复课程内容与实践验收问题 Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !545 merge fix/ge-course-issues-304-492 into test fix(ge): 修复课程内容与实践验收问题 Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 修复 GE 图引擎开发系列教程中 10 个课程反馈问题,覆盖实践验收、错误状态传播、章节/目录引用、配图使用以及 Python ES 复杂算子示例。 主要改动: - 强化 01.04 拓扑排序实践验收:检查乱序图、精确拓扑序、节点结构、环检测及静动态 Shape。 - 修正 02.04 两项实践的退出码,并校验离线编译四阶段、模型缓冲区和非空 OM 产物。 - 保留并传播 PrintModelOutputs 失败状态,清理资源后返回非零。 - 将实践目录统一为 Sources/02.02、Sources/02.03。 - 修正 02.03 中 10 处 sample_dynmaic_batch 拼写和上游样例链接。 - 修正动态 Shape、自定义算子以及离线样例的章节、函数名和接口语言描述。 - 在正文引用 ascendir_elements.svg、capability_interfaces.svg。 - 新增经 Ascend 910 + CANN 9.0 真机验证的 Python ES MatMul 示例,并补充 MatMulV3 shape/dtype 推导错误排查。 ## 关联的Issue https://gitcode.com/cann/cann-learning-hub/issues/393 https://gitcode.com/cann/cann-learning-hub/issues/376 https://gitcode.com/cann/cann-learning-hub/issues/304 https://gitcode.com/cann/cann-learning-hub/issues/305 https://gitcode.com/cann/cann-learning-hub/issues/306 https://gitcode.com/cann/cann-learning-hub/issues/315 https://gitcode.com/cann/cann-learning-hub/issues/317 https://gitcode.com/cann/cann-learning-hub/issues/450 https://gitcode.com/cann/cann-learning-hub/issues/415 https://gitcode.com/cann/cann-learning-hub/issues/492 ## 测试 - 21 个 GE Notebook 均可正常 JSON 解析;9 个修改 Notebook 通过 jq empty。 - git diff --check 通过。 - 01.04 未完成拓扑排序时退出码为 1,完整实现及参考答案返回 0。 - 拓扑验收异常回归:主图成功但乱序合法 DAG 抛异常时返回 1,正确 Kahn 实现返回 0。 - 02.04 两个未完成骨架均返回 1;参考答案返回 0,并生成非空 OM 测试产物。 - C++ 参考答案通过 g++ -std=c++17 -Wall -Wextra -Werror。 - Python ES MatMul 在 Ascend 910 + CANN 9.0 上执行通过,输出与 NumPy 一致:[[38, 44, 50, 56], [83, 98, 113, 128]]。 - 40 张 GE 教程 SVG 资源均已有正文引用,修改后的相对链接均可达。 - sample_dynmaic_batch 遗留为 0,正确上游链接返回 HTTP 200。 ## 文档更新 更新 GE 第一至第三章相关 Notebook 和两份章节实践参考答案。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [x] 内容优化 - [ ] 其他,请描述: ## 其他信息 本 PR 基于最新 test 分支,仅包含本组 GE 课程问题修复提交。 See merge request: cann/cann-learning-hub!545 | 6 天前 | |
fix(ge): 修复课程内容与实践验收问题 Co-authored-by: KenChow<zhouchen53@huawei.com> # message auto-generated for no-merge-commit merge: !545 merge fix/ge-course-issues-304-492 into test fix(ge): 修复课程内容与实践验收问题 Created-by: KenChow Commit-by: KenChow Merged-by: cann-robot Description: ## 描述 修复 GE 图引擎开发系列教程中 10 个课程反馈问题,覆盖实践验收、错误状态传播、章节/目录引用、配图使用以及 Python ES 复杂算子示例。 主要改动: - 强化 01.04 拓扑排序实践验收:检查乱序图、精确拓扑序、节点结构、环检测及静动态 Shape。 - 修正 02.04 两项实践的退出码,并校验离线编译四阶段、模型缓冲区和非空 OM 产物。 - 保留并传播 PrintModelOutputs 失败状态,清理资源后返回非零。 - 将实践目录统一为 Sources/02.02、Sources/02.03。 - 修正 02.03 中 10 处 sample_dynmaic_batch 拼写和上游样例链接。 - 修正动态 Shape、自定义算子以及离线样例的章节、函数名和接口语言描述。 - 在正文引用 ascendir_elements.svg、capability_interfaces.svg。 - 新增经 Ascend 910 + CANN 9.0 真机验证的 Python ES MatMul 示例,并补充 MatMulV3 shape/dtype 推导错误排查。 ## 关联的Issue https://gitcode.com/cann/cann-learning-hub/issues/393 https://gitcode.com/cann/cann-learning-hub/issues/376 https://gitcode.com/cann/cann-learning-hub/issues/304 https://gitcode.com/cann/cann-learning-hub/issues/305 https://gitcode.com/cann/cann-learning-hub/issues/306 https://gitcode.com/cann/cann-learning-hub/issues/315 https://gitcode.com/cann/cann-learning-hub/issues/317 https://gitcode.com/cann/cann-learning-hub/issues/450 https://gitcode.com/cann/cann-learning-hub/issues/415 https://gitcode.com/cann/cann-learning-hub/issues/492 ## 测试 - 21 个 GE Notebook 均可正常 JSON 解析;9 个修改 Notebook 通过 jq empty。 - git diff --check 通过。 - 01.04 未完成拓扑排序时退出码为 1,完整实现及参考答案返回 0。 - 拓扑验收异常回归:主图成功但乱序合法 DAG 抛异常时返回 1,正确 Kahn 实现返回 0。 - 02.04 两个未完成骨架均返回 1;参考答案返回 0,并生成非空 OM 测试产物。 - C++ 参考答案通过 g++ -std=c++17 -Wall -Wextra -Werror。 - Python ES MatMul 在 Ascend 910 + CANN 9.0 上执行通过,输出与 NumPy 一致:[[38, 44, 50, 56], [83, 98, 113, 128]]。 - 40 张 GE 教程 SVG 资源均已有正文引用,修改后的相对链接均可达。 - sample_dynmaic_batch 遗留为 0,正确上游链接返回 HTTP 200。 ## 文档更新 更新 GE 第一至第三章相关 Notebook 和两份章节实践参考答案。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [x] 内容优化 - [ ] 其他,请描述: ## 其他信息 本 PR 基于最新 test 分支,仅包含本组 GE 课程问题修复提交。 See merge request: cann/cann-learning-hub!545 | 6 天前 | |
删除无用链接 Co-authored-by: waimaidaole<1595992831@qq.com> # message auto-generated for no-merge-commit merge: !374 merge test into test 删除无用链接 Created-by: waimaidaole Commit-by: waimaidaole Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 内容优化 - [ ] 其他,请描述: ## 其他信息 <!-- 在这里可以添加任何与这个 Pull Request 相关的其他说明。 --> See merge request: cann/cann-learning-hub!374 | 23 天前 |
基础概念入门
章节概述
本章为 GE 图引擎开发的入门奠基章节,主要讲解 GE 在昇腾全栈中的定位与两大职责、编译四阶段与模型下沉调度,以及 AscendIR 的 Graph、Node、Tensor、数据边、控制边和静态/动态 Shape 等核心概念,帮助开发者构建从模型到图引擎的基础认知,为后续推理流程实践做好准备。本章无需 NPU 设备即可学习。
在线体验
| Notebook | Link | 状态 |
|---|---|---|
| 1.1 章节介绍 | 在线体验建设中 | ✅ 已发布 |
| 1.2 GE 定位与核心概念 | 在线体验建设中 | ✅ 已发布 |
| 1.3 AscendIR 基础概念 | 在线体验建设中 | ✅ 已发布 |
| 1.4 章节练习 | 在线体验建设中 | ✅ 已发布 |