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

Function HasSingleFanoutNode

tensorflow/core/grappler/graph_view.cc:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool HasSingleFanoutNode(const GraphView& graph_view, const NodeDef* node,
67 int port) {
68 const auto output = GraphView::OutputPort(node, port);
69 return graph_view.GetFanout(output).size() <= 1;
70}
71
72bool HasFanouts(const GraphView& graph_view, const NodeDef* node, int port) {
73 const auto output = GraphView::OutputPort(node, port);

Callers

nothing calls this directly

Calls 2

OutputPortClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected