Home
last modified time | relevance | path

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

12

/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DCompilationCachingTests.cpp318 void saveModelToCache(const Model& model, const hidl_vec<hidl_handle>& modelCache, in saveModelToCache() argument
328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
365 void prepareModelFromCache(const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument
372 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
430 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
431 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
433 saveModelToCache(model, modelCache, dataCache); in TEST_P()
440 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
441 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
443 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DCompilationCachingTests.cpp321 void saveModelToCache(const Model& model, const hidl_vec<hidl_handle>& modelCache, in saveModelToCache() argument
330 model, ExecutionPreference::FAST_SINGLE_ANSWER, kDefaultPriority, {}, modelCache, in saveModelToCache()
368 void prepareModelFromCache(const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument
375 {}, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
433 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
434 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
436 saveModelToCache(model, modelCache, dataCache); in TEST_P()
443 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
444 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
446 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp319 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in saveModelToCache() argument
330 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
371 void prepareModelFromCache(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument
380 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
396 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
419 void verifyModelPreparationBehaviour(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in verifyModelPreparationBehaviour() argument
427 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
437 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
493 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
494 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientDevice.cpp181 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument
188 preference, priority, deadline, modelCache, in prepareModel()
190 return device->prepareModelInternal(model, preference, priority, deadline, modelCache, in prepareModel()
195 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, token, in prepareModel()
201 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
206 modelCache, dataCache, token] { in prepareModelFromCache()
207 return device->prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache()
211 return prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache()
238 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelInternal() argument
245 const auto fn = [&model, preference, priority, &deadline, &modelCache, &dataCache, &token, in prepareModelInternal()
[all …]
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/
DDevice.h69 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
73 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache,
77 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
80 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache,
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/
DDevice.cpp170 const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_2() argument
180 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_2()
199 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_3() argument
210 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_3()
228 const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument
236 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache()
252 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache_1_3() argument
260 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache_1_3()
466 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
468 auto result = adapter::prepareModel_1_2(kDevice, kExecutor, model, preference, modelCache, in prepareModel_1_2()
[all …]
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DMockDevice.h68 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
72 (const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
83 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
87 (const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache,
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientDevice.h67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
86 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
91 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
DInvalidDevice.h54 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
60 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/
DDevice.cpp164 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument
177 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel()
199 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument
207 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache()
287 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument
293 modelCache, dataCache, token, {}, {}, callback); in prepareModel()
305 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument
308 const auto result = adapter::prepareModelFromCache(kDevice, kExecutor, deadlineNs, modelCache, in prepareModelFromCache()
325 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DIDevice.aidl44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument
45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/utils/common/test/
DMockDevice.h41 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
47 (OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DIDevice.aidl44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument
45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DIDevice.aidl44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument
45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DIDevice.aidl44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument
45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
DPrepareModelConfig.aidl40 ParcelFileDescriptor[] modelCache;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DIDevice.aidl44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument
45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DIDevice.aidl350 in long deadlineNs, in ParcelFileDescriptor[] modelCache, in prepareModel() argument
432 void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h48 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
58 (int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/
DDevice.h67 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
72 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DInvalidDevice.cpp126 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument
150 if (modelCache.size() != static_cast<size_t>(kNumberOfCacheFiles.numModelCache)) { in prepareModel()
153 "Invalid modelCache, size = " + std::to_string(modelCache.size())); in prepareModel()
192 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h52 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
60 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp189 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument
202 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModel()
219 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
222 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h66 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
72 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,

12