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

Method onSetCachePath

source/core/Backend.hpp:341–343  ·  view source on GitHub ↗

For NPU backend don't support load from buffer , use onSetCachePath

Source from the content-addressed store, hash-verified

339 }
340 // For NPU backend don't support load from buffer , use onSetCachePath
341 virtual bool onSetCachePath(const char* path, int mode) {
342 return false;
343 }
344
345 // If buffer is not nullptr, try copy cache, else delete cache
346 virtual bool onSetCache(const void* buffer, size_t size) {

Callers 2

setCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected