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

Function HasControlInputs

tensorflow/core/grappler/utils.cc:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262bool HasControlInputs(const NodeDef& node) {
263 const int num_inputs = node.input_size();
264 if (num_inputs > 0 && IsControlInput(node.input(num_inputs - 1))) {
265 return true;
266 }
267 return false;
268}
269
270bool HasRegularInputs(const NodeDef& node) {
271 const int num_inputs = node.input_size();

Callers 3

TEST_FFunction · 0.85
IsFoldableMethod · 0.85
TrySimplifyMethod · 0.85

Calls 3

IsControlInputFunction · 0.85
input_sizeMethod · 0.45
inputMethod · 0.45

Tested by 1

TEST_FFunction · 0.68