提交 5daad162 编写于 作者: X Xin Pan

polish

上级 ff5a7b67
......@@ -56,7 +56,8 @@ struct VarHandleBase {
void RemoveOutput(OpHandleBase* out, ir::Node* node) {
pending_ops_.erase(out);
std::remove(node_->outputs.begin(), node_->outputs.end(), node);
node_->outputs.erase(
std::remove(node_->outputs.begin(), node_->outputs.end(), node));
}
void ClearGeneratedOp() {
......
......@@ -64,9 +64,6 @@ class Graph {
return nodes.back().get();
}
// TODO(paddle-dev): There shouldn't be kNone nodes in the ir::Graph.
// node should either be a executable kOperation or a kVariable. kNone
// node is a temporary solution.
ir::Node* CreateEmptyNode(const std::string& name, ir::Node::Type type) {
nodes.emplace_back(new ir::Node(name, type));
return nodes.back().get();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册