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

Function HasControlFanin

tensorflow/core/grappler/graph_view.cc:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool HasControlFanin(const GraphView& graph_view, const NodeDef* node) {
78 const auto control_port = GraphView::InputPort(node, Graph::kControlSlot);
79 return !graph_view.GetFanin(control_port).empty();
80}
81
82bool HasControlFanout(const GraphView& graph_view, const NodeDef* node) {
83 const auto control_port = GraphView::OutputPort(node, Graph::kControlSlot);

Callers 1

HasControlFaninOrFanoutFunction · 0.85

Calls 3

InputPortClass · 0.85
emptyMethod · 0.45
GetFaninMethod · 0.45

Tested by

no test coverage detected