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

fix(lite): fix BUILD and misc

GitOrigin-RevId: 48aa0e0924079391b72b1d9dab75980cfaa0a701
上级 65c3159c
......@@ -183,7 +183,7 @@ struct ConvLoadDumpImpl {
static void dump(OprDumpContext& ctx, const cg::OperatorNodeBase& opr_) {
auto&& opr = opr_.cast_final_safe<Opr>();
ctx.write_param<ConvParam>(opr.param());
ctx.write_param<megdnn::param::ExecutionPolicy>(opr.execution_policy());
ctx.write_param<megdnn::param::ExecutionPolicy>(opr.execution_policy_transient());
}
static VarNode* make(const cg::VarNodeArray& inputs, const ConvParam& param,
......
......@@ -414,9 +414,7 @@ size_t AlgoChooser<Opr>::setup_algo(const FixedTensorLayouts& layouts,
size_t workspace = ctx.get_workspace_size_bytes(policy);
std::string ret;
if (mgb_opr->dyn_typeinfo()->name) {
ret.append(mgb_opr->dyn_typeinfo()->name);
}
ret += format_fixlayouts<Opr>(layouts, arity_in, arity_out);
Algorithm* palgo = megdnn_opr->get_algorithm_from_desc(policy.algo);
mgb_assert(palgo, "Unknown algo description");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册