Home
last modified time | relevance | path

Searched refs:modelCache (Results 1 – 18 of 18) sorted by relevance

/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp166 auto modelCache = createCacheHandleVec(modelCacheFds, numModelCacheFiles); in setCachingFromFds() local
167 if (!modelCache.has_value()) { in setCachingFromFds()
170 << modelCache.error().message; in setCachingFromFds()
181 .modelCache = std::move(modelCache).value(), in setCachingFromFds()
DManager.cpp433 if (cacheHandles->modelCache.size() != numCacheFiles.first) { in getCacheHandles()
436 << cacheHandles->modelCache.size(); in getCacheHandles()
460 std::vector<SharedHandle> modelCache = in getCacheHandles() local
468 .modelCache = std::move(modelCache), in getCacheHandles()
479 return kInterface->prepareModelFromCache(deadline, cache.modelCache, cache.dataCache, token); in prepareModelFromCacheInternal()
522 kInterface->prepareModel(model, preference, priority, deadline, cache.modelCache, in prepareModel()
DManager.h114 std::vector<SharedHandle> modelCache; member
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h57 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
65 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
73 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
/packages/modules/NeuralNetworks/driver/sample/
DLimitedSupportDevice.cpp191 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache, in prepareModel() argument
200 return kDevice->prepareModel(model, preference, priority, deadline, modelCache, dataCache, in prepareModel()
205 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache, in prepareModelFromCache() argument
207 return kDevice->prepareModelFromCache(deadline, modelCache, dataCache, token); in prepareModelFromCache()
DCanonicalDevice.h56 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
62 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
DLimitedSupportDevice.h63 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
69 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriver.h91 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
97 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
101 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
106 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
DSampleDriverPartial.h47 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
DSampleDriverFloatXNNPACK.cpp1847 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
1853 const hardware::hidl_vec<hardware::hidl_handle>& modelCache,
1929 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_3() argument
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DIDevice.h254 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
312 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp530 const std::vector<::ndk::ScopedFileDescriptor>& modelCache, in prepareModelCommon() argument
584 if (!modelCache.empty() || !dataCache.empty()) { in prepareModelCommon()
586 compilation.second.setCachingFromFds(getIntFds(modelCache), getIntFds(dataCache), in prepareModelCommon()
629 const std::vector<::ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument
633 return prepareModelCommon(model, preference, priority, deadlineNs, modelCache, dataCache, token, in prepareModel()
641 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
/packages/modules/NeuralNetworks/runtime/test/
DTestExecution.cpp364 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_3() argument
370 model, preference, priority, deadline, modelCache, dataCache, token, localCallback); in prepareModel_1_3()
395 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_2() argument
401 model, preference, modelCache, dataCache, token, localCallback); in prepareModel_1_2()
489 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_2() argument
493 return mLatestDriver->prepareModel_1_2(model, preference, modelCache, dataCache, token, in prepareModel_1_2()
520 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModelFromCache() argument
523 return mLatestDriver->prepareModelFromCache(modelCache, dataCache, token, callback); in prepareModelFromCache()
DTestCompilationCaching.cpp236 void checkNumberOfCacheHandles(size_t modelCache, size_t dataCache) { in checkNumberOfCacheHandles() argument
238 if (modelCache != 0 || dataCache != 0) { in checkNumberOfCacheHandles()
239 ASSERT_EQ(modelCache, mNumModelCache); in checkNumberOfCacheHandles()
243 ASSERT_EQ(modelCache, 0ul); in checkNumberOfCacheHandles()
DTestPartitioning.cpp356 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_3() argument
381 return SampleDriver::prepareModel_1_3(model, preference, priority, deadline, modelCache, in prepareModel_1_3()
492 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_2() argument
495 return mLatestDriver->prepareModel_1_2(model, preference, modelCache, dataCache, token, in prepareModel_1_2()
511 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModelFromCache() argument
514 return mLatestDriver->prepareModelFromCache(modelCache, dataCache, token, callback); in prepareModelFromCache()
DTestPartitioningRandom.cpp590 const hardware::hidl_vec<hardware::hidl_handle>& modelCache, in prepareModel_1_3() argument
606 return SampleDriver::prepareModel_1_3(model, preference, priority, deadline, modelCache, in prepareModel_1_3()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.h82 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
90 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
DSampleDriverAidlPartial.h46 const std::vector<ndk::ScopedFileDescriptor>& modelCache,