MCPcopy Create free account
hub / github.com/alibaba/MNN / isBreakOp

Function isBreakOp

express/module/PipelineModule.cpp:337–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337static bool isBreakOp(const Op* op) {
338 bool isWhileControlflow = false;
339 if (op->type() == OpType_While && op->main_as_WhileParam() != nullptr) {
340 isWhileControlflow = true;
341 }
342 if (op->type() == OpType_If || isWhileControlflow || op->type() == OpType_Where || op->type() == OpType_Segment ||
343 op->type() == OpType_Unique || op->type() == OpType_NonMaxSuppressionV2 || op->type() == OpType_MoE) {
344 return true;
345 }
346 return false;
347}
348
349static std::vector<int> _collectNeededOps(const MNN::Net* net, const std::set<int>& inputIndexes, const std::set<int>& outputIndexes) {
350 // 0: not set, 1: output, 2:input

Callers 1

_createSubModuleInfoFunction · 0.70

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected