| 679 | } |
| 680 | |
| 681 | std::shared_ptr<Executor::SubGraph> Executor::findSubGraph(const std::string& submoduleName) { |
| 682 | #ifndef MNN_REDUCE_SIZE |
| 683 | auto iter = mSubGraph.find(submoduleName); |
| 684 | if (iter == mSubGraph.end()) { |
| 685 | return nullptr; |
| 686 | } |
| 687 | return iter->second; |
| 688 | #else |
| 689 | return nullptr; |
| 690 | #endif |
| 691 | } |
| 692 | void Executor::setLazyComputeMode(uint32_t mode) { |
| 693 | mLazyMode = mode; |
| 694 | } |