MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DecrementFaninCount

Function DecrementFaninCount

tensorflow/core/grappler/utils/graph_view.cc:444–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444inline 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
458MutableGraphView::MutableGraphView(GraphDef* graph, Status* status)

Callers 2

ReplaceNodeFanoutsMethod · 0.85

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected