Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DCompilationCachingTests.cpp319 const hidl_vec<hidl_handle>& dataCache, in saveModelToCache() argument
328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
366 const hidl_vec<hidl_handle>& dataCache, in prepareModelFromCache() argument
372 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
430 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
432 createCacheHandles(mDataCache, AccessMode::READ_WRITE, &dataCache); in TEST_P()
433 saveModelToCache(model, modelCache, dataCache); in TEST_P()
440 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
442 createCacheHandles(mDataCache, AccessMode::READ_WRITE, &dataCache); in TEST_P()
443 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp318 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in saveModelToCache() argument
328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
370 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in prepareModelFromCache() argument
378 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
394 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
418 const std::vector<ndk::ScopedFileDescriptor>& dataCache, 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
493 createCacheFds(mDataCache, AccessMode::READ_WRITE, &dataCache); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientDevice.cpp182 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModel() argument
187 dataCache, token] { in prepareModel()
189 dataCache, token); in prepareModel()
193 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, in prepareModel()
200 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { 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()
237 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { 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,
74 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token,
77 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache,
81 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token,
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientDevice.h68 const std::vector<nn::SharedHandle>& dataCache,
73 const std::vector<nn::SharedHandle>& dataCache,
86 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const;
89 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const;
DInvalidDevice.h55 const std::vector<nn::SharedHandle>& dataCache,
60 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DDevice.cpp177 const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
187 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModel_1_2()
207 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token, in prepareModel_1_3() argument
218 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModel_1_3()
237 const hidl_vec<hidl_handle>& dataCache, in prepareModelFromCache() argument
245 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModelFromCache()
262 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token, in prepareModelFromCache_1_3() argument
270 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModelFromCache_1_3()
476 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
479 dataCache, token, callback); 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,
88 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token,
/hardware/interfaces/neuralnetworks/utils/common/test/
DMockDevice.h42 const std::vector<SharedHandle>& dataCache, const CacheToken& token),
46 const std::vector<SharedHandle>& dataCache, const CacheToken& token),
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DIDevice.aidl44 …lineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDescriptor[] dataCache, in byte[] token… in prepareModel() argument
45 …lineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDescriptor[] dataCache, in byte[] token… in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DIDevice.aidl348 in ParcelFileDescriptor[] dataCache, in byte[] token, in prepareModel() argument
430 in ParcelFileDescriptor[] dataCache, in byte[] token, in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h49 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
55 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h53 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
58 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
DDevice.h69 const std::vector<nn::SharedHandle>& dataCache,
74 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h67 const std::vector<nn::SharedHandle>& dataCache,
72 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h67 const std::vector<nn::SharedHandle>& dataCache,
72 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h69 const std::vector<nn::SharedHandle>& dataCache,
74 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp190 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModel() argument
201 const auto hidlDataCache = NN_TRY(convert(dataCache)); in prepareModel()
218 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModelFromCache() argument
221 const auto hidlDataCache = NN_TRY(convert(dataCache)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DInvalidDevice.cpp127 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModel() argument
155 if (dataCache.size() != static_cast<size_t>(kNumberOfCacheFiles.numDataCache)) { in prepareModel()
158 "Invalid modelCache, size = " + std::to_string(dataCache.size())); in prepareModel()
DDevice.cpp217 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModel() argument
228 const auto aidlDataCache = NN_TRY(convert(dataCache)); in prepareModel()
243 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModelFromCache() argument
246 const auto aidlDataCache = NN_TRY(convert(dataCache)); 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.cpp239 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModel() argument
248 const auto hidlDataCache = NN_TRY(convert(dataCache)); in prepareModel()
264 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { in prepareModelFromCache() argument
266 const auto hidlDataCache = NN_TRY(convert(dataCache)); in prepareModelFromCache()
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DDevice.h86 const std::vector<nn::SharedHandle>& dataCache,
91 const std::vector<nn::SharedHandle>& dataCache,
/hardware/interfaces/neuralnetworks/1.2/
DIDevice.hal240 * @param dataCache 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,
324 * @param dataCache A vector of handles with each entry holding exactly one
346 prepareModelFromCache(vec<handle> modelCache, vec<handle> dataCache,
/hardware/interfaces/neuralnetworks/1.3/
DIDevice.hal176 * @param dataCache 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,
285 * @param dataCache A vector of handles with each entry holding exactly one
311 vec<handle> modelCache, vec<handle> dataCache,