提交 2561a6fc 编写于 作者: D dzhwinter

follow comment. test=develop

上级 2a5ecb68
......@@ -401,7 +401,7 @@ void GraphView::Build(ir::Graph* g) {
}
}
const& std::vector<ir::Node*> GraphView::AllOps() { return ops_; }
const std::vector<ir::Node*>& GraphView::AllOps() { return ops_; }
bool GraphView::ReusedInPythonMemOpt(const std::string& var) const {
return dup_nodes_.count(var);
......
......@@ -33,7 +33,7 @@ class GraphView {
void Build(ir::Graph* g);
const& std::vector<ir::Node*> AllOps();
const std::vector<ir::Node*>& AllOps();
ir::Node* GetNodeByName(const std::string& name,
const std::vector<ir::Node*>& nodes) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册