专栏算法工具链hb_compile模型转换失败,出现Segmentation fault问题

hb_compile模型转换失败,出现Segmentation fault问题

已解决
默认476162025-01-23
139
5

J6M OE

模型转换失败

INFO End to Horizon NN Model Convert. PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libHBDKPythonCAPI.so 0x00007f57862c15fb Segmentation fault (core dumped)

附件:
算法工具链
征程6
评论2
0/1000
  • Huanghui
    Lv.5

    你好,为方便处理问题,我们要先进行复现,请上传你的原始的onnx文件

    2025-01-23
    0
    2
    • 默认47616回复Huanghui:

      上面附件中有最简模型的.onnx模型文件

      2025-01-23
      0
    • Huanghui回复默认47616:

      好的,我们先试试复现,稍后回复你

      2025-01-23
      0
  • Huanghui
    Lv.5
    你好,我这边复现了异常的问题,日志如下,现象和你是不一样的:

    我使用的工具链的版本是3.0.27,从下面复现的日志来看,错误的原因是:loc("/GatherND"): error: 'hbir.gather_nd' op cannot infer result type: kernel native::GatherND config function call failure! It's defined at ../../hbtl/lib/UdeRegSilverC.cpp:23. Due to the size of the last dimension of index cannot be dynamic 导致这个问题原因是在你的模型中使用了nonzero算子导致后续的节点出现了动态shape,

    你可以尝试通过生成生成类似(mask=input !=0)这种mask的方式从特征空间中gather信息。

    2025-01-23
    0
    1
    • 默认47616回复Huanghui:

      我使用的3.0.22会出现上面截图中的问题,我先换用3.0.27再看看

      2025-01-24
      0