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

Method onCreate

source/backend/vulkan/runtime/VulkanRuntime.cpp:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176Backend* VulkanRuntime::onCreate(const BackendConfig* config, Backend* origin) const {
177 if (nullptr != config) {
178 MNN_ASSERT(config->precision == mPrecision);
179 }
180 auto backend = new VulkanBackend(this);
181 backend->setMetaPtr(pMeta);
182 return backend;
183}
184int VulkanRuntime::onGetRuntimeStatus(RuntimeStatus statusEnum) const {
185 switch (statusEnum) {
186 case STATUS_SUPPORT_FP16: {

Callers

nothing calls this directly

Calls 1

setMetaPtrMethod · 0.80

Tested by

no test coverage detected