| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
onnx插件注册迁移ParseParamsByOperatorFn并新增framework UT Co-authored-by: clinglai0517<laichangling@huawei.com> # message auto-generated for no-merge-commit merge: !1414 merge onnx-fix into master onnx插件注册迁移ParseParamsByOperatorFn并新增framework UT Created-by: clinglai0517 Commit-by: clinglai0517 Merged-by: cann-robot Description: ### 1. ONNX 插件解析器迁移 - 迁移6个onnx插件解析器: YoloBoxesEncode/AffineGrid/Iou/NMSWithMask/TransArgb/YoloxBoundingBoxDecode - 解析器签名由 const Message* op_src 改为 const ge::Operator& op_src - 属性解析由遍历 NodeProto::attribute() 改为读取 op_src.GetAttr("attribute") 的 JSON 解析 - 注册接口由 .ParseParamsFn(...) 迁移为 .ParseParamsByOperatorFn(...) ### 2. 公共工具头文件去重 - 新增 common/inc/framework/cv_plugin_util.h,收纳 GetOpName/ChangeFormatFromOnnx/StrToFloat - 文件名带 cv 前缀,避免不同 ops-* 算子仓头文件重名冲突 - 同步更新 onnx_common.h 及 4 个已迁移插件源的 include ### 3. framework UT 框架与用例 - cmake/ut.cmake 新增 framework ut 模块(${PKG_NAME}_op_framework_ut), tests/ut/op_host 接入 framework ut cases - UT 用例按算子拆分:一个算子对应一个 test_*_onnx_plugin.cpp 文件 (affine_grid / npu_iou / npu_nms_with_mask / trans_argb / yolox_bounding_box_decode / yolo_boxes_encode),共 15 个用例 ## 验证 - 容器内 cv_op_host_ut 构建+运行: 15 tests from 6 test suites, 全部 PASSED, RUN_EXIT=0 - bash build.sh --onnxplugin -j32 生产构建通过,产物 liboponnx_plugin_cv.so See merge request: cann/ops-cv!1414 | 1 个月前 | |
完善工具依赖文档和更新依赖安装脚本 Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !342 merge master into master 完善工具依赖文档和更新依赖安装脚本 Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 完善工具依赖文档和更新依赖安装脚本 ## 关联的Issue todo ## 测试 功能测试: ==== Checking CMake ==== Current CMake version: 3.16.3 CMake meets requirements ==== Checking pigz ==== Current pigz version: 2.4 pigz meets requirements ==== Checking dos2unix ==== dos2unix has been installed ==== Checking googletest ==== Current googletest version: 1.10.0 Install googletest? [Y/n] y Installing googletest... xxxx googletest installed successfully (1.10.0) ==================================================== All dependencies installed successfully! ==================================================== pip3 install -r requirements.txt Looking in indexes: http://xxxx/pypi/simple Requirement already satisfied: xxx Requirement already satisfied: xxx Requirement already satisfied: xxx 常规测试: ==================================== FINAL SUMMARY ==================================== kirinx90 : FAILED (no .o) ascend950 : OK (144 .o) ascend910 : SKIPPED (.o) ascend910b : OK (81 .o) ascend910B : OK (81 .o) ascend310b : OK (3 .o) ascend310B : OK (3 .o) ascend310p : OK (25 .o) ascend310P : OK (25 .o) ascend610lite : SKIPPED (.o) ascend910_93 : OK (81 .o) STATIC_BUILD : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz) mc62cm12a : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run) ==================================== [ALL DONE] ## 文档更新 工具依赖的txt更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!342 | 8 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 8 个月前 |