We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5ecb6 commit 2561a6fCopy full SHA for 2561a6f
paddle/fluid/framework/details/inplace_op_pass.cc
@@ -401,7 +401,7 @@ void GraphView::Build(ir::Graph* g) {
401
}
402
403
404
-const& std::vector<ir::Node*> GraphView::AllOps() { return ops_; }
+const std::vector<ir::Node*>& GraphView::AllOps() { return ops_; }
405
406
bool GraphView::ReusedInPythonMemOpt(const std::string& var) const {
407
return dup_nodes_.count(var);
paddle/fluid/framework/details/inplace_op_pass.h
@@ -33,7 +33,7 @@ class GraphView {
33
34
void Build(ir::Graph* g);
35
36
- const& std::vector<ir::Node*> AllOps();
+ const std::vector<ir::Node*>& AllOps();
37
38
ir::Node* GetNodeByName(const std::string& name,
39
const std::vector<ir::Node*>& nodes) const;
0 commit comments