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

Method NumFanins

tensorflow/core/grappler/graph_view.h:246–251  ·  view source on GitHub ↗

Gets the number of ports in the immediate fanin of a node. Count the controlling nodes iff include_controlling_nodes is true.

Source from the content-addressed store, hash-verified

244 // Gets the number of ports in the immediate fanin of a node. Count the
245 // controlling nodes iff include_controlling_nodes is true.
246 int NumFanins(const NodeDefT& node, bool include_controlling_nodes) const {
247 if (include_controlling_nodes) {
248 return node.input_size();
249 }
250 return gtl::FindWithDefault(max_regular_input_port_, &node, -1) + 1;
251 }
252
253 // Gets the number of ports in the immediate fanout of a node. Count the
254 // controlled nodes iff include_controlled_nodes is true.

Callers 4

HasRegularFaninNodeFunction · 0.80
TEST_FFunction · 0.80
SchedulingPassFunction · 0.80

Calls 1

input_sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64