| 442 | } |
| 443 | |
| 444 | inline void DecrementFaninCount( |
| 445 | absl::flat_hash_map<internal::NodeDefAndPortIndex, int>* fanins_count, |
| 446 | const internal::NodeDefAndPortIndex& fanin) { |
| 447 | auto it = fanins_count->find(fanin); |
| 448 | if (it != fanins_count->end()) { |
| 449 | if (it->second <= 1) { |
| 450 | fanins_count->erase(it); |
| 451 | } else { |
| 452 | --it->second; |
| 453 | } |
| 454 | } |
| 455 | } |
| 456 | } // namespace |
| 457 | |
| 458 | MutableGraphView::MutableGraphView(GraphDef* graph, Status* status) |
no test coverage detected