已关闭
[Bug-Report|缺陷反馈]: experimental/math/acosh/docs/aclnnAcosh.md 中调用示例引用不存在的 example_aclnn_acosh.cpp #2458
gcw_93rlw6ed创建于 8月1日关闭于 8月1日
songkai111
8月1日 评论:
8月1日 评论:
确实存在问题,已安排相关责任人修复


8月1日 关联了pull request:fix: 修复多个文档中的失效链接(#2455/#2456/#2457/#2458/#2459)
8月1日 关闭了 issue
8月1日 添加了label:resolved
一、问题描述 (必填)
文件
experimental/math/acosh/docs/aclnnAcosh.md第 184 行通过 inline code 引用了示例代码文件examples/example_aclnn_acosh.cpp,但该文件在仓库中并不存在。实际
experimental/math/acosh/examples/目录下的测试样例文件为test_aclnn_acosh.cpp,并没有名为example_aclnn_acosh.cpp的文件。文档中的引用既使用了错误的文件名前缀(example_而非test_),也导致用户无法找到正确的示例代码入口。二、环境信息 (可选)
experimental/math/acosh/docs/aclnnAcosh.mdls和find验证三、重现步骤 (可选)
git clone -b master https://gitcode.com/cann/ops-math.git && cd ops-mathsed -n '184p' experimental/math/acosh/docs/aclnnAcosh.md输出:
完整示例代码见 \examples/example_aclnn_acosh.cpp`,以下为核心调用流程:`ls experimental/math/acosh/examples/example_aclnn_acosh.cpp→ No such file or directoryls experimental/math/acosh/examples/→ 只有test_aclnn_acosh.cppfind . -name "example_aclnn_acosh.cpp"→ 无结果experimental/math/acosh/docs/aclnnAcosh.md,第 184 行的examples/example_aclnn_acosh.cpp引用无法跳转到真实文件四、预期结果 (可选)
修复
experimental/math/acosh/docs/aclnnAcosh.md第 184 行,将失效引用替换为真实存在的样例文件:完整示例代码见 \examples/example_aclnn_acosh.cpp`,以下为核心调用流程:`完整示例代码见 \examples/test_aclnn_acosh.cpp`,以下为核心调用流程:`五、修复建议 (可选)
该问题根因疑似 acosh 算子文档从其他算子模板复制时,未将示例文件名前缀从
example_更新为实际的test_。建议:example_aclnn_acosh.cpp改为test_aclnn_acosh.cpp。experimental/**/docs/aclnn*.md文件,校验examples/引用是否真实存在。💡 备注(选填)
本 issue 与 issue #2454/#2455/#2456 属同类文档失效引用问题,建议统一在 CI 中增加引用存在性校验。