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

fix(extern_c_opr): let megbrain throw a exception when load extern c opr fails

GitOrigin-RevId: 16f5ceb8e3b0413de80812c3f3b3b75fa8205460
上级 c68e6695
......@@ -518,6 +518,10 @@ cg::OperatorNodeBase* ExternCOprRunner::load(OprLoadContext& ctx,
if (auto trans = iter->second.second) {
desc = trans(desc);
}
mgb_throw_if(nullptr == desc, MegBrainError,
"loader create desc returns nullptr");
return make_from_desc(dump_name, inputs, desc, config);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册