已关闭
[Documentation|文档反馈]: [AI 识别] examples里面三个样例的关系是什么,如何测试 #1122
StoneChan_创建于 3月30日关闭于 4月15日
3月30日 修改了issue 的描述
3月30日 修改了issue 的描述
3月30日 修改了issue 的描述
3月30日 修改了issue 的描述
3月30日 修改了issue 的描述
sunday
3月30日 评论:
3月30日 评论:
/assign @songkai111


3月30日 将 songkai111 设为负责人
4月3日 将 Ding_Jing 设为负责人
4月13日 修改标题为 “[Documentation|文档反馈]: [易用性分析] examples里面三个样例的关系是什么,如何测试”,原标题为“[Documentation|文档反馈]: examples里面三个样例的关系是什么,如何测试”
4月13日 修改标题为 “[Documentation|文档反馈]: [易用性分析] examples里面三个样例的关系是什么,如何测试”,原标题为“[Documentation|文档反馈]: examples里面三个样例的关系是什么,如何测试”
4月13日 修改标题为 “[Documentation|文档反馈]: [AI 识别] examples里面三个样例的关系是什么,如何测试”,原标题为“[Documentation|文档反馈]: [易用性分析] examples里面三个样例的关系是什么,如何测试”
4月13日 修改标题为 “[Documentation|文档反馈]: [AI 识别] examples里面三个样例的关系是什么,如何测试”,原标题为“[Documentation|文档反馈]: [易用性分析] examples里面三个样例的关系是什么,如何测试”
4月15日 关联了pull request:add_example_aicpu修改
4月15日 关闭了 issue
4月15日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
一、文档链接 (必填)
https://gitcode.com/cann/ops-math/blob/master/docs/zh/develop/aicore_develop_guide.md
https://gitcode.com/cann/ops-math/blob/master/docs/zh/develop/aicpu_develop_guide.md
https://gitcode.com/cann/ops-math/blob/master/examples/fast_kernel_launch_example/README.md
二、问题文档片段 (必填)
问题1:为什么3个样例的介绍文档不在一个位置,这三者的关系是什么
问题2:aicpu的指导中没有提及如何测试,以及是否能够测试,实际测试无法通过,且docs/zh/invocation/quick_op_invocation.md这里也只介绍了add_example的测试方式
文档片段:
算子验证
验证算子前需确保已配置了环境变量,命令如下:
export LD_LIBRARY_PATH=${ASCEND_HOME_PATH}/opp/vendors/${vendor_name}_math/op_api/lib:${LD_LIBRARY_PATH} export ASCEND_CUSTOM_OPP_PATH=${ASCEND_HOME_PATH}/opp/vendors/${vendor_name}_mathUT验证
算子开发过程中,可通过UT验证(如Kernel)方式进行快速验证,如需查看详细实现,请参考Kernel UT。
aclnn调用验证
开发好的算子完成编译部署后,可通过aclnn方式验证功能,方法请参考算子调用方式。
问题:
没有介绍examples怎么执行,bash build.sh --run_example add_example_aicpu eager cust --vendor_name=custom可以执行通过
而UT的执行无法通过
执行:
bash build.sh -u --opkernel --ops=add_example_aicpu
结果:
执行:
./build/tests/ut/op_kernel_aicpu/math_aicpu_op_kernel_ut
结果:
add_example kernel ut执行失败
执行:
bash build.sh -u --opkernel --ops=add_example
结果:
💡 存在的问题(选填)