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

Function NumNonControlDataOutputs

tensorflow/core/grappler/utils.cc:351–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351int NumNonControlDataOutputs(const NodeDef& node, const NodeMap& node_map) {
352 int num_data_outputs = 0;
353 for (const NodeDef* output : node_map.GetOutputs(node.name())) {
354 if (IsShapeConsumer(*output)) continue;
355
356 for (int i = 0; i < output->input_size(); ++i) {
357 const string& input = output->input(i);
358 if (!IsControlInput(input) && NodeName(input) == node.name()) {
359 ++num_data_outputs;
360 break;
361 }
362 }
363 }
364 return num_data_outputs;
365}
366
367// Returns the data type in attribute `attr_name` of `node`. If that attribute
368// doesn't exist, returns DT_INVALID.

Callers 3

TEST_FFunction · 0.85
TrySimplifyMethod · 0.85

Calls 7

IsShapeConsumerFunction · 0.85
IsControlInputFunction · 0.85
NodeNameFunction · 0.85
GetOutputsMethod · 0.80
nameMethod · 0.65
input_sizeMethod · 0.45
inputMethod · 0.45

Tested by 1

TEST_FFunction · 0.68