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

Function HasRegularOutputs

tensorflow/core/grappler/utils.cc:288–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288bool HasRegularOutputs(const NodeDef& node, const NodeMap& node_map) {
289 for (const NodeDef* output : node_map.GetOutputs(node.name())) {
290 for (const string& node_as_input : output->input()) {
291 if (IsControlInput(node_as_input)) break;
292
293 TensorId tensor = ParseTensorName(node_as_input);
294 if (tensor.node() == node.name()) {
295 return true;
296 }
297 }
298 }
299 return false;
300}
301
302bool HasControlOutputs(const NodeDef& node, const NodeMap& node_map) {
303 for (const NodeDef* output : node_map.GetOutputs(node.name())) {

Callers 3

TEST_FFunction · 0.85
SimplifySwitchMethod · 0.85
SafeToConvertToNoOpMethod · 0.85

Calls 6

IsControlInputFunction · 0.85
ParseTensorNameFunction · 0.85
GetOutputsMethod · 0.80
nameMethod · 0.65
inputMethod · 0.45
nodeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68