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

Function IsArrayConsumed

tensorflow/lite/toco/tooling_util.cc:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117bool IsArrayConsumed(const Model& model, const string& name) {
118 if (GetOpWithInput(model, name)) {
119 return true;
120 }
121 if (IsOutputArray(model, name)) {
122 return true;
123 }
124 for (const auto& rnn_state : model.flags.rnn_states()) {
125 if (rnn_state.back_edge_source_array() == name) {
126 return true;
127 }
128 }
129 return false;
130}
131
132int CountTrueOutputs(const Model& model, const Operator& op) {
133 int count = 0;

Callers 2

DumpOperatorEdgesFunction · 0.85
CountTrueOutputsFunction · 0.85

Calls 2

GetOpWithInputFunction · 0.85
IsOutputArrayFunction · 0.85

Tested by

no test coverage detected