MCPcopy Create free account
hub / github.com/alibaba/MNN / create

Method create

source/core/RuntimeFactory.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13namespace MNN {
14Runtime* 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

Callers

nothing calls this directly

Calls 2

onCreateMethod · 0.45

Tested by

no test coverage detected