| 12 | |
| 13 | namespace MNN { |
| 14 | Runtime* RuntimeFactory::create(const Backend::Info& info) { |
| 15 | auto creator = MNNGetExtraRuntimeCreator(info.type); |
| 16 | if (nullptr == creator) { |
| 17 | MNN_PRINT("Create Runtime Failed because no creator for %d\n", info.type); |
| 18 | return nullptr; |
| 19 | } |
| 20 | auto runtime = creator->onCreate(info); |
| 21 | if (nullptr == runtime) { |
| 22 | MNN_PRINT("Create Runtime failed, the creator return nullptr, type = %d\n", info.type); |
| 23 | } |
| 24 | return runtime; |
| 25 | } |
| 26 | } // namespace MNN |
nothing calls this directly
no test coverage detected