Home
last modified time | relevance | path

Searched refs:cacheVersion (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dneural_network_runtime.cpp533 …rnCode CheckCacheFile(const std::string& cacheInfoPath, int64_t& fileNumber, int64_t& cacheVersion) in CheckCacheFile() argument
559 if (!ifs.read(reinterpret_cast<char*>(&(cacheVersion)), sizeof(cacheVersion))) { in CheckCacheFile()
592 int64_t cacheVersion{0}; in OH_NNModel_HasCache() local
593 OH_NN_ReturnCode returnCode = CheckCacheFile(cacheInfoPath, fileNumber, cacheVersion); in OH_NNModel_HasCache()
617 if (cacheVersion != version) { in OH_NNModel_HasCache()
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dcompilation.h35 uint32_t cacheVersion {0};
H A Dneural_network_core.cpp336 compilationImpl->cacheVersion = version; in OH_NNCompilation_SetCache()
439 ret = compilation->compiler->SetCacheDir(compilation->cachePath, compilation->cacheVersion); in SetCompilationOptions()