| 129 | } |
| 130 | |
| 131 | bool GraphPartitionerBase::IsSplitedIgnored( |
| 132 | const std::string &cur_loc, |
| 133 | const Node* node) |
| 134 | { |
| 135 | if (!node->IsOp()) { |
| 136 | return true; |
| 137 | } |
| 138 | |
| 139 | if (is_main_loc_func_(cur_loc)) { |
| 140 | return false; |
| 141 | } |
| 142 | |
| 143 | if (node->IsKvVarHandle ()) { |
| 144 | return true; |
| 145 | } |
| 146 | |
| 147 | if (node->IsVariable()) { |
| 148 | return true; |
| 149 | } |
| 150 | |
| 151 | if (node->IsIdentity() && GetVarOfIdentity(opts_, node) != nullptr) { |
| 152 | return true; |
| 153 | } |
| 154 | |
| 155 | return false; |
| 156 | } |
| 157 | |
| 158 | void GraphPartitionerBase::TryAddEdgeNode( |
| 159 | const std::string &cur_loc, const Node *node, deque<const Node*> &nodes, |
nothing calls this directly
no test coverage detected