HarmonyOS 鸿蒙Next 使用DDK100.600.010.010配套模型转换工具OMG报错

发布于 1周前 作者 caililin 来自 鸿蒙OS

HarmonyOS 鸿蒙Next 使用DDK100.600.010.010配套模型转换工具OMG报错

报错信息:I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: libplugin_search.so: cannot open shared object file: No such file or directory”

请问“libplugin_search.so”文件从哪下载?

全部报错信息如下

INFO: execute command: xxx/DDK_tools_100.600.010.010/tools/tools_omg/IR/omg --model xxx/pacnew.onnx --framework 5 --output ./pacnet
I/AI_FMK  (142220): cl_register.cpp CLRegister(56)::“CLRegister start! clName:FMK_CL”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:Initialize”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:Finalize”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:SetOnServiceDiedCallback”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetOpsKernelInfoStores”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetGraphOptimizerObjs”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetGraphCompilerObjs”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetGraphExecutorFactoryObjs”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetCompatibleHelperObjs”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetDeviceEventHandlerObjs”
I/AI_FMK  (142220): cl_register.cpp RegisterComputeLibraryFunc(39)::“RegisterComputeLibraryFunc funName:GetCompiledTargetSaverObjs”
I/OMG_TOOL  (142220): main.cpp main(18)::“OMG run begin.”
I/OMG_TOOL  (142220): command_util.cpp CheckHiaiVersionValid(780)::“set version ir."
I/AI_FMK  (142220): omg.cpp Generate(174)::“Generate begin.”
I/AI_FMK  (142220): ops_kernel_store_manager.cpp DlopenComputeLibrary(41)::“Open ComputeLibrary so: libcpucl_host.so”
I/AI_FMK  (142220): ops_kernel_store_manager.cpp DlopenComputeLibrary(41)::“Open ComputeLibrary so: libai_npucore_itf.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(59)::“RegPluginSearch: Tiling, RLGraphPluginSearch, libplugin_search.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: libplugin_search.so: cannot open shared object file: No such file or directory”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(59)::“RegPluginSearch: Tiling, RLSetGraphCandidates, libplugin_search.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: (null)”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(59)::“RegPluginSearch: Tiling, RLOpPluginSearch, libplugin_search.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: (null)”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(59)::“RegPluginSearch: Tiling, RLSetOpCandidates, libplugin_search.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: (null)”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(59)::“RegPluginSearch: elementary_lib, RLGraphPluginSearchMode, libplugin_search.so”
I/AI_NPUCL  (142220): plugin_search_mgr.cc RegPluginSearch(73)::“load libplugin_search.so failed: (null)”
W/AI_NPUCL  (142220): common_service.cc SetOnServiceDiedCallback(298)::"geHandler is nullptr”
I/AI_FMK  (142220): model_util.cpp BuildOrigin2IRGraph(346)::“ModelUtil::BuildOrigin2IRGraph from file”
I/AI_FMK  (142220): proto_util.cpp ReadBytesFromBinaryFile(192)::“Read size:93347899”
E/AI_FMK  (142220): onnx_graph_parser.cpp ParserGraph(720)::“Pre-check has errors.”
E/AI_FMK  (142220): model_util.cpp ParseOriginONNX2IrGraph(907)::“ModelUtil parse ONNX source model failed! ret:1”
E/AI_FMK  (142220): model_util.cpp BuildOrigin2IRGraph(351)::“ModelUtil parse source model failed! ret:1”
E/AI_FMK  (142220): omg.cpp GenerateIRModel(105)::“Failed to generator IR graph!.”
E/OMG_TOOL  (142220): command_util.cpp ProcessCommand(1168)::“OMG Generate execute failed!!”
E/OMG_TOOL  (142220): main.cpp main(21)::"OMG generate offline model failed. Please see the log or pre-checking report for more details."<button style="position: absolute; padding: 4px 8px 0px; cursor: pointer; top: 8px; right: 8px; font-size: 14px;">复制</button>

4 回复

E/AI_FMK (142220): onnx_graph_parser.cpp ParserGraph(720)::"Pre-check has errors."
这个是报错,可以用以下代码检查下onnx模型格式是否正确,libplugin_search.so failed不影响转换

import onnx
from onnx import checker

# 加载模型 model_path = “yourmodel.onnx” model = onnx.load(model_path)

# 检查模型 try: checker.check_model(model) print(“The model is valid!”) except onnx.checker.ValidationError as e: print(f"The model is invalid: {e}")<button style="position: absolute; padding: 4px 8px 0px; cursor: pointer; top: 8px; right: 8px; font-size: 14px;">复制</button>

如果check通过的话,那么大概率是因为onnx模型文件中含有工具不支持的特殊算子,可以使用 netron 查看下模型是否存在不支持的特殊算子。

同样的问题
我也遇到了同样的报错,有什么解决办法吗

针对HarmonyOS 鸿蒙Next使用DDK100.600.010.010配套模型转换工具OMG报错的问题,这通常是由于缺少必要的库文件或配置不当导致的。报错信息显示无法加载libplugin_search.so文件,这可能是因为该文件未正确安装或路径配置有误。

为了解决这个问题,请首先确认libplugin_search.so文件是否已经存在于系统中,并且位于工具能够搜索到的路径下。如果该文件缺失,可能需要从官方渠道重新下载或恢复该文件。同时,检查OMG工具的配置文件,确保所有路径和依赖项都已正确设置。

此外,确保你的开发环境符合HarmonyOS鸿蒙Next的要求,包括操作系统版本、内存、硬盘空间等。如果问题依旧存在,可能是由于DDK版本与HarmonyOS版本不兼容,建议查阅官方文档或社区论坛获取更多信息。

如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部