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

Function _needSplitNet

tools/cpp/compilefornpu.cpp:631–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631static bool _needSplitNet(const Net* net, const std::set<int>& inputIndexes, const std::set<int>& outputIndexes) {
632 auto selectOps = _collectNeededOps(net, inputIndexes, outputIndexes);
633 for (int si = 0; si < selectOps.size(); ++si) {
634 auto i = selectOps[si];
635 auto op = net->oplists()->GetAs<Op>(i);
636 if (isBreakOp(op) || gExtraBreakOpIndexes.count(i) > 0) {
637 return true;
638 }
639 }
640 return false;
641}
642
643static std::vector<SubModuleInfo> _createSubModuleInfo(const Net* net, const std::set<int>& inputIndexes, const std::set<int>& outputIndexes, const std::set<int>& noComputeIndexes, std::shared_ptr<Schedule::ScheduleInfo> sharedConst) {
644 std::vector<SubModuleInfo> submodule;

Callers 1

mainFunction · 0.85

Calls 4

_collectNeededOpsFunction · 0.70
isBreakOpFunction · 0.70
sizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected