Home
last modified time | relevance | path

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

/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/aidl/vts/functional/
DCompilationCachingTests.cpp317 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in saveModelToCache() argument
328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
369 void prepareModelFromCache(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument
378 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
394 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
417 void verifyModelPreparationBehaviour(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in verifyModelPreparationBehaviour() argument
425 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
435 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
491 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
492 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
186 preference, priority, deadline, modelCache, in prepareModel()
188 return device->prepareModelInternal(model, preference, priority, deadline, modelCache, in prepareModel()
193 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, in prepareModel()
199 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
204 modelCache, dataCache, token] { in prepareModelFromCache()
205 return device->prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache()
209 return prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache()
236 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelInternal() argument
241 const auto fn = [&model, preference, priority, &deadline, &modelCache, &dataCache, in prepareModelInternal()
[all …]
/hardware/interfaces/neuralnetworks/utils/adapter/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/common/include/nnapi/hal/
DResilientDevice.h67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
72 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
85 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
88 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
DInvalidDevice.h54 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
59 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DDevice.cpp176 const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_2() argument
186 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_2()
206 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_3() argument
217 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_3()
236 const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument
244 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache()
261 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache_1_3() argument
269 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache_1_3()
476 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
478 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/test/
DMockDevice.h41 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
45 (OptionalTimePoint deadline, const std::vector<SharedHandle>& 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.aidl347 in long deadlineNs, in ParcelFileDescriptor[] modelCache, in prepareModel() argument
429 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,
54 (int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h52 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
57 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
DDevice.h68 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h66 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
71 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h66 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
71 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h68 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp189 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument
200 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModel()
217 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
220 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModelFromCache()
/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()
DDevice.cpp216 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument
227 const auto aidlModelCache = NN_TRY(convert(modelCache)); in prepareModel()
242 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
245 const auto aidlModelCache = NN_TRY(convert(modelCache)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/1.2/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,
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DDevice.cpp238 nn::OptionalTimePoint /*deadline*/, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument
247 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModel()
263 nn::OptionalTimePoint /*deadline*/, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument
265 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DDevice.h85 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
90 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
/hardware/interfaces/neuralnetworks/1.2/
DIDevice.hal234 * @param modelCache A vector of handles with each entry holding exactly one
252 * output values. If both modelCache and dataCache are empty indicating that
267 vec<handle> modelCache, vec<handle> dataCache,
320 * @param modelCache A vector of handles with each entry holding exactly one
346 prepareModelFromCache(vec<handle> modelCache, vec<handle> dataCache,
/hardware/interfaces/neuralnetworks/1.3/
DIDevice.hal169 * @param modelCache A vector of handles with each entry holding exactly one
190 * modelCache and dataCache are empty indicating that caching
209 vec<handle> modelCache, vec<handle> dataCache,
281 * @param modelCache A vector of handles with each entry holding exactly one
311 vec<handle> modelCache, vec<handle> dataCache,