Home
last modified time | relevance | path

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

12

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DValidateHal.cpp38 const std::vector<std::shared_ptr<aidl_hal::IPreparedModel>>& preparedModels, in validateMemoryDesc() argument
45 NN_RET_CHECK(!preparedModels.empty()); in validateMemoryDesc()
53 NN_RET_CHECK_LT(static_cast<size_t>(role.modelIndex), preparedModels.size()); in validateMemoryDesc()
54 const auto& preparedModel = preparedModels[role.modelIndex]; in validateMemoryDesc()
69 NN_RET_CHECK_LT(static_cast<size_t>(role.modelIndex), preparedModels.size()); in validateMemoryDesc()
70 const auto& preparedModel = preparedModels[role.modelIndex]; in validateMemoryDesc()
DDevice.cpp52 const std::vector<nn::SharedPreparedModel>& preparedModels) { in convert() argument
53 std::vector<std::shared_ptr<IPreparedModel>> aidlPreparedModels(preparedModels.size()); in convert()
54 for (size_t i = 0; i < preparedModels.size(); ++i) { in convert()
55 std::any underlyingResource = preparedModels[i]->getUnderlyingResource(); in convert()
274 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
278 const auto aidlPreparedModels = NN_TRY(convert(preparedModels)); in allocate()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp342 std::vector<std::shared_ptr<IPreparedModel>> preparedModels; member
351 preparedModelParcels.reserve(args.preparedModels.size()); in validateAllocate()
352 for (const auto& model : args.preparedModels) { in validateAllocate()
370 .preparedModels = {model1, model2}, in testConflictOperands()
375 .preparedModels = {model1, model2}, in testConflictOperands()
380 .preparedModels = {model1, model2}, in testConflictOperands()
396 .preparedModels = {preparedModel}, in TEST_P()
403 .preparedModels = {nullptr}, in TEST_P()
409 .preparedModels = {nullptr}, in TEST_P()
420 .preparedModels = {invalidPreparedModel}, in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DMemoryDomainTests.cpp324 hidl_vec<sp<IPreparedModel>> preparedModels; member
333 {.dimensions = std::move(args.dimensions)}, std::move(args.preparedModels), in validateAllocate()
346 .preparedModels = {model1, model2}, in testConflictOperands()
351 .preparedModels = {model1, model2}, in testConflictOperands()
356 .preparedModels = {model1, model2}, in testConflictOperands()
372 .preparedModels = {preparedModel}, in TEST_P()
379 .preparedModels = {nullptr}, in TEST_P()
385 .preparedModels = {nullptr}, in TEST_P()
395 .preparedModels = {invalidPreparedModel}, in TEST_P()
401 .preparedModels = {invalidPreparedModel}, in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp58 const std::vector<nn::SharedPreparedModel>& preparedModels) { in convert() argument
59 hidl_vec<sp<IPreparedModel>> hidlPreparedModels(preparedModels.size()); in convert()
60 for (size_t i = 0; i < preparedModels.size(); ++i) { in convert()
61 std::any underlyingResource = preparedModels[i]->getUnderlyingResource(); in convert()
238 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
242 const auto hidlPreparedModels = NN_TRY(convert(preparedModels)); in allocate()
/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientDevice.cpp216 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
221 ResilientBuffer::Factory makeBuffer = [device = std::move(self), desc, preparedModels, in allocate()
223 return device->allocateInternal(desc, preparedModels, inputRoles, outputRoles); in allocate()
227 return allocateInternal(desc, preparedModels, inputRoles, outputRoles); in allocate()
266 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocateInternal() argument
272 const auto fn = [&desc, &preparedModels, &inputRoles, &outputRoles](const nn::IDevice& device) { in allocateInternal()
273 return device.allocate(desc, preparedModels, inputRoles, outputRoles); in allocateInternal()
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/
DDevice.cpp97 const std::vector<IPreparedModelParcel>& preparedModels) { in downcastAll() argument
99 canonical.reserve(preparedModels.size()); in downcastAll()
100 for (const auto& preparedModel : preparedModels) { in downcastAll()
107 const std::vector<IPreparedModelParcel>& preparedModels, in allocate() argument
111 auto nnPreparedModels = NN_TRY(downcastAll(preparedModels)); in allocate()
230 const std::vector<IPreparedModelParcel>& preparedModels, in allocate() argument
234 auto result = adapter::allocate(*kDevice, desc, preparedModels, inputRoles, outputRoles); in allocate()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DValidateHal.h37 const std::vector<std::shared_ptr<aidl_hal::IPreparedModel>>& preparedModels,
DInvalidDevice.h39 const std::vector<IPreparedModelParcel>& preparedModels,
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/
DDevice.cpp289 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels) { in downcastAll() argument
291 canonical.reserve(preparedModels.size()); in downcastAll()
292 for (const auto& preparedModel : preparedModels) { in downcastAll()
300 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels, in allocate() argument
304 auto nnPreparedModels = NN_TRY(downcastAll(preparedModels)); in allocate()
531 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels, in allocate() argument
534 auto result = adapter::allocate(kDevice, desc, preparedModels, inputRoles, outputRoles); in allocate()
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientDevice.h78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
94 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
DInvalidDevice.h65 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DIDevice.aidl37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
/hardware/interfaces/neuralnetworks/utils/common/test/
DMockDevice.h51 (const BufferDesc& desc, const std::vector<SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DIDevice.aidl37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DIDevice.aidl37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DIDevice.aidl37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DIDevice.aidl37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DIDevice.aidl116 DeviceBuffer allocate(in BufferDesc desc, in IPreparedModelParcel[] preparedModels, in allocate() argument
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h33 (const BufferDesc& desc, const std::vector<IPreparedModelParcel>& preparedModels,
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/
DDevice.h54 const std::vector<IPreparedModelParcel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h77 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h79 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/
DDevice.h85 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels,

12