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

Function GetInputsCount

tensorflow/lite/toco/import_tensorflow.cc:506–516  ·  view source on GitHub ↗

Count the number of inputs of a given node. If `tf_import_flags.drop_control_dependency` is true, count the number of non-control-dependency inputs.

Source from the content-addressed store, hash-verified

504// `tf_import_flags.drop_control_dependency` is true, count the number of
505// non-control-dependency inputs.
506int GetInputsCount(const NodeDef& node,
507 const TensorFlowImportFlags& tf_import_flags) {
508 if (tf_import_flags.drop_control_dependency) {
509 for (size_t i = 0; i < node.input_size(); ++i) {
510 if (node.input(i)[0] == '^') {
511 return i;
512 }
513 }
514 }
515 return node.input_size();
516}
517
518tensorflow::Status CheckInputsCount(
519 const NodeDef& node, const TensorFlowImportFlags& tf_import_flags,

Callers 10

CheckInputsCountFunction · 0.85
ConvertConcatOperatorFunction · 0.85
ConvertMirrorPadOperatorFunction · 0.85
ConvertSvdfOperatorFunction · 0.85
ConvertPackOperatorFunction · 0.85
ConvertUnpackOperatorFunction · 0.85

Calls 2

input_sizeMethod · 0.45
inputMethod · 0.45

Tested by

no test coverage detected