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

Function DeleteOpAndArrays

tensorflow/lite/toco/tooling_util.cc:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void DeleteOpAndArrays(Model* model, const Operator* op) {
190 for (const string& array_name : op->inputs) {
191 DeleteArrayIfUnusedOutsideOfOp(array_name, op, model);
192 }
193 for (const string& array_name : op->outputs) {
194 DeleteArrayIfUnusedOutsideOfOp(array_name, op, model);
195 }
196 auto op_it = FindOp(*model, op);
197 CHECK(op_it != model->operators.end());
198 model->operators.erase(op_it);
199}
200
201std::vector<std::unique_ptr<Operator>>::const_iterator FindOpWithOutput(
202 const Model& model, const string& array_name) {

Callers 15

RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RewireFinalUnpackOutputsFunction · 0.85
GroupDynamicSequenceOpsFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 4

FindOpFunction · 0.85
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected