| 17 | namespace MNN { |
| 18 | namespace Express { |
| 19 | static int _findPos(const std::vector<std::string>& names, const std::string& key) { |
| 20 | for (int i=0; i<names.size(); ++i) { |
| 21 | if (names[i] == key) { |
| 22 | return i; |
| 23 | } |
| 24 | } |
| 25 | return -1; |
| 26 | } |
| 27 | WhileModule* WhileModule::create(const Op* op, const std::map<std::string, SubGraph>& subGraph) { |
| 28 | auto module = new WhileModule; |
| 29 | module->setType("WhileModule"); |