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

docs(gopt): add more comments

GitOrigin-RevId: 358f30b1b70fb70d821d6bd0e6e3db605161ea7b
上级 6d6b42bb
......@@ -474,6 +474,13 @@ ComputingGraphImpl::CompileState ComputingGraphImpl::compile_prepare(
}
#endif
gopt::GraphOptimizer optimizer;
/**
* \note We should reset options when we add passes indicated by optimize
* options, As there exists `ParamFuse pass` will compile subgraph which may
* cause ring invoking, \see
* https://git-core.megvii-inc.com/brain-sdk/MegBrain/merge_requests/1717
* for detail
*/
optimizer.add_passes_for_optimize_options(options().graph_opt, true);
optimizer.apply_inplace(dest_vars);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册