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

Function NumNonControlInputs

tensorflow/core/grappler/utils.cc:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278int NumNonControlInputs(const NodeDef& node) {
279 int num_inputs = node.input_size();
280 for (const string& input : node.input()) {
281 if (IsControlInput(input)) {
282 --num_inputs;
283 }
284 }
285 return num_inputs;
286}
287
288bool HasRegularOutputs(const NodeDef& node, const NodeMap& node_map) {
289 for (const NodeDef* output : node_map.GetOutputs(node.name())) {

Callers 10

TEST_FFunction · 0.85
SimplifyPackMethod · 0.85
ConstantPushDownMethod · 0.85
MulConvPushDownMethod · 0.85
MergeConcatMethod · 0.85
IsSupportedMethod · 0.85

Calls 3

IsControlInputFunction · 0.85
input_sizeMethod · 0.45
inputMethod · 0.45

Tested by 1

TEST_FFunction · 0.68