提交 8928c77c 编写于 作者: M Megvii Engine Team

fix(neuropilot): fix loader header mismatch

GitOrigin-RevId: c6b3b7a7b8061e231549be29e9c1b26a724444de
上级 221ec38a
...@@ -290,8 +290,11 @@ ExternCOprRunner::ExternCOprRunner(std::string& name, ...@@ -290,8 +290,11 @@ ExternCOprRunner::ExternCOprRunner(std::string& name,
m_dump_name{name}, m_dump_name{name},
m_param{nullptr} { m_param{nullptr} {
mgb_assert(m_desc->size == sizeof(MGBOprDesc), mgb_assert(m_desc->size == sizeof(MGBOprDesc),
"invalid MGBOprDesc size: expect=%zu got=%u", sizeof(MGBOprDesc), "invalid MGBOprDesc size: expect=%zu got=%u, may caused by "
m_desc->size); "extern_c_opr.h mismatch, please confirm that the "
"extern_c_opr.h used when compiling the loader is consistent "
"with the runtime caller build used",
sizeof(MGBOprDesc), m_desc->size);
for (auto i : inputs) { for (auto i : inputs) {
add_input({i}); add_input({i});
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册