Pull Request has been successfully merged by CANN-robot.
(Thank you for ayuemoon's contribution.)代码审查
审查总结
已审查文件:docs/QUICKSTART.md(共 1 个文件)
发现问题统计
| 优先级 | 数量 | 说明 |
|---|---|---|
| P2 | 2 | 文档中两处对样例输入数据生成方式的描述与实际代码不符 |
| P3 | 1 | 删除了 --soc 不匹配导致 error 161001 的排错提示 |
整体风险判断
中等风险。核心问题是文档新增的输入数据说明("递增序列 + 随机种子 42")与测试代码实际行为(常量 1.0)完全不一致,会直接误导用户对程序行为的理解。同时,原有的 --soc 参数不匹配排错指引被移除,降低了文档的可用性。其余变更(标题格式调整、msprof op 命令更新、CANN 环境变量提示补充)均为正向改进,无问题。
| 类型 | 数量 |
|---|---|
| 🔴 阻塞 | 0 |
| 🟡 建议 | 2 |
💬 仅评论


Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/ops-cv | ✅ 刘伟, 张磊 (2/2) | ✅ 刘伟, 张磊 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
ayuemoon, thanks for your pull request. All authors of the commits have signed the CLA. 👍


🟡 Medium Priority
第 159 行新增描述:"输入数据仍沿用样例中的递增序列和固定随机数种子 42,请以实际运行值为准。"
与第 96 行的问题相同——实际测试代码 examples/add_example/examples/test_aclnn_add_example.cpp 中两个输入均以 std::vector<float>(2048, 1) 常量 1.0 填充,不存在递增序列和随机种子 42。此处位于"算子开发"章节,用户在修改核函数后重新验证,文档提示的输入生成方式与实际不符,同样会造成困惑。
建议:将描述修正为与实际代码一致,移除不存在的"递增序列和固定随机数种子 42"表述。
| 159
| - 4. **成功标志**:输出结果变成乘法结果。每组结果应等于两个输入之积。输入数据仍沿用样例中的 |
|
159 | + 4. **成功标志**:输出结果变成乘法结果。每组结果应等于两个输入之积。输入数据仍沿用样例中的常量 1.0 填充,请以实际运行值为准。 |


🟡 Medium Priority
变更行(第 96 行)新增描述:"样例中第一个输入从 1.0 开始递增,第二个输入使用固定随机数种子 42 生成"。
实际测试代码 examples/add_example/examples/test_aclnn_add_example.cpp 中(第 99 行和第 106 行):
代码中不存在任何递增序列、随机数生成或 seed 42。文档描述与实际代码行为完全不一致。
同样的问题也存在于第 159 行的相同描述:"输入数据仍沿用样例中的递增序列和固定随机数种子 42"。
影响:用户阅读文档后会期望看到基于随机种子的可变输出,但实际运行结果全部为 1.0,造成困惑。同时用户在修改测试输入时可能误以为存在随机数逻辑而去寻找不存在的代码。
| 96
| - 预期输出:打印算子`AddExample`的加法计算结果,表明算子已成功部署并正确执行。样例中 |
|
96 | + 预期输出:打印算子`AddExample`的加法计算结果,表明算子已成功部署并正确执行。样例中两个输入均以常量 1.0 填充,每组结果应等于两个输入之和。 |


compile


流水线任务触发成功
任务链接 [59c4200a5da041239d9d8244ff8705d9][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-08-05 21:35:39] CI执行结束


流水线任务触发成功
任务链接 [1b37f58466ef4e089541a2554a387147][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> |
[2026-08-05 21:30:02] CI执行结束


compile


流水线任务触发成功
任务链接 [2d8ce076f82d4222be50c829f83707de][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_harmony-infer-chs-cv | ✅ SUCCESS | ||
| UT_Test_harmony-infer-cpro-cv | ✅ SUCCESS | ||
| UT_Test_report_lcov | ✅ SUCCESS |
[2026-08-05 21:46:09] CI执行结束


流水线任务触发成功
任务链接 [932ec9e240834d34a0883f3c8a503a73][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> |
[2026-08-05 21:37:40] CI执行结束


/lgtm
/approve


描述
完善 QUICKSTART.md 快速入门文档,补充环境配置说明和算子运行细节,帮助用户更快上手 CANN 算子开发。
具体改动:
set_env.sh,避免因找不到ASCEND_HOME_PATH导致编译失败--soc=ascend910b→--soc=${soc_version},并添加取值说明,适配不同芯片型号msprof→msprof op,添加算子基础信息打印说明和性能瓶颈提示OPPROF_*文件夹,更新 msProf 文档链接关联的Issue
https://gitcode.com/cann/ops-cv/issues/707
测试
文档更新
本次 PR 本身就是文档更新,修改文件:
类型标签