| 82 | } |
| 83 | |
| 84 | void Executor::gc(GCFlag flag) { |
| 85 | int level = flag == FULL ? 100 : 0; |
| 86 | for (auto& iter : mRuntimeInfo.first) { |
| 87 | iter.second->onGabageCollect(level); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | Executor::Executor(std::shared_ptr<Runtime> runtime, MNNForwardType type, int numberThread) { |
| 92 | mRuntimeInfo.first.insert(std::make_pair(type, runtime)); |