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

Function HasControlFanout

tensorflow/core/grappler/graph_view.cc:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool HasControlFanout(const GraphView& graph_view, const NodeDef* node) {
83 const auto control_port = GraphView::OutputPort(node, Graph::kControlSlot);
84 return !graph_view.GetFanout(control_port).empty();
85}
86
87bool HasControlFaninOrFanout(const GraphView& graph_view, const NodeDef* node) {
88 return HasControlFanin(graph_view, node) ||

Callers 1

HasControlFaninOrFanoutFunction · 0.85

Calls 2

OutputPortClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected