| 310 | }; |
| 311 | |
| 312 | const Module::Info* Module::getInfo() const { |
| 313 | if (mType != "Net") { |
| 314 | MNN_ERROR("The Module is not load from buffer, can't get info\n"); |
| 315 | return nullptr; |
| 316 | } |
| 317 | return ((NetModule*)(this))->info(); |
| 318 | } |
| 319 | |
| 320 | static void _loadInputs(Module::Info* info, const std::vector<std::string>& inputs, const Net* net) { |
| 321 | auto type = net->sourceType(); |