File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ struct VarHandleBase {
56
56
57
57
void RemoveOutput (OpHandleBase* out, ir::Node* node) {
58
58
pending_ops_.erase (out);
59
- std::remove (node_->outputs .begin (), node_->outputs .end (), node);
59
+ node_->outputs .erase (
60
+ std::remove (node_->outputs .begin (), node_->outputs .end (), node));
60
61
}
61
62
62
63
void ClearGeneratedOp () {
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ class Graph {
64
64
return nodes.back ().get ();
65
65
}
66
66
67
- // TODO(paddle-dev): There shouldn't be kNone nodes in the ir::Graph.
68
- // node should either be a executable kOperation or a kVariable. kNone
69
- // node is a temporary solution.
70
67
ir::Node* CreateEmptyNode (const std::string& name, ir::Node::Type type) {
71
68
nodes.emplace_back (new ir::Node (name, type));
72
69
return nodes.back ().get ();
You can’t perform that action at this time.
0 commit comments