Home
last modified time | relevance | path

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

12

/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/1.3/vts/functional/
DCompilationCachingTests.cpp322 const hidl_vec<hidl_handle>& dataCache, in saveModelToCache() argument
331 dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
369 const hidl_vec<hidl_handle>& dataCache, in prepareModelFromCache() argument
375 {}, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
433 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
435 createCacheHandles(mDataCache, AccessMode::READ_WRITE, &dataCache); in TEST_P()
436 saveModelToCache(model, modelCache, dataCache); in TEST_P()
443 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
445 createCacheHandles(mDataCache, AccessMode::READ_WRITE, &dataCache); in TEST_P()
446 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp320 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in saveModelToCache() argument
330 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
372 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in prepareModelFromCache() argument
380 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
396 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
420 const std::vector<ndk::ScopedFileDescriptor>& dataCache, 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
495 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, in prepareModel() argument
189dataCache, token, hints, extensionNameToPrefix] { in prepareModel()
191 dataCache, token, hints, extensionNameToPrefix); in prepareModel()
195 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, token, in prepareModel()
202 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const { 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()
239 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token, 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,
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/adapter/hidl/src/
DDevice.cpp171 const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
181 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModel_1_2()
200 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token, in prepareModel_1_3() argument
211 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModel_1_3()
229 const hidl_vec<hidl_handle>& dataCache, in prepareModelFromCache() argument
237 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModelFromCache()
253 const hidl_vec<hidl_handle>& dataCache, const CacheToken& token, in prepareModelFromCache_1_3() argument
261 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModelFromCache_1_3()
466 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument
469 dataCache, token, callback); in prepareModel_1_2()
[all …]
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientDevice.h68 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token,
74 const std::vector<nn::SharedHandle>& dataCache,
87 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token,
92 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token) const;
DInvalidDevice.h55 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token,
61 const std::vector<nn::SharedHandle>& dataCache,
/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/adapter/aidl/src/
DDevice.cpp165 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModel() argument
178 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModel()
200 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModelFromCache() argument
208 auto nnDataCache = NN_TRY(convertInput(dataCache)); in prepareModelFromCache()
288 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in prepareModel() argument
293 modelCache, dataCache, token, {}, {}, callback); in prepareModel()
306 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModelFromCache() argument
309 dataCache, token, callback); in prepareModelFromCache()
325 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/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/aidl_api/android.hardware.neuralnetworks/1/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/utils/common/test/
DMockDevice.h42 const std::vector<SharedHandle>& dataCache, const CacheToken& token,
48 const std::vector<SharedHandle>& dataCache, const CacheToken& token),
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/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/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
DPrepareModelConfig.aidl41 ParcelFileDescriptor[] dataCache;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/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
DPrepareModelConfig.aidl41 ParcelFileDescriptor[] dataCache;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DIDevice.aidl351 in ParcelFileDescriptor[] dataCache, in byte[] token, in prepareModel() argument
433 in ParcelFileDescriptor[] dataCache, in byte[] token, in prepareModelFromCache() argument
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h49 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
59 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/
DDevice.h68 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
73 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h53 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
61 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
/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()
192 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h68 const std::vector<nn::SharedHandle>& dataCache, const nn::CacheToken& token,
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, const nn::CacheToken& token,
73 const std::vector<nn::SharedHandle>& dataCache,

12