Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientDevice.cpp214 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
219 ResilientBuffer::Factory makeBuffer = [device = std::move(self), desc, preparedModels, in allocate()
221 return device->allocateInternal(desc, preparedModels, inputRoles, outputRoles); in allocate()
225 return allocateInternal(desc, preparedModels, inputRoles, outputRoles); in allocate()
262 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocateInternal() argument
268 const auto fn = [&desc, &preparedModels, &inputRoles, &outputRoles](const nn::IDevice& device) { in allocateInternal()
269 return device.allocate(desc, preparedModels, inputRoles, outputRoles); in allocateInternal()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp315 std::vector<std::shared_ptr<IPreparedModel>> preparedModels; member
324 preparedModelParcels.reserve(args.preparedModels.size()); in validateAllocate()
325 for (const auto& model : args.preparedModels) { in validateAllocate()
343 .preparedModels = {model1, model2}, in testConflictOperands()
348 .preparedModels = {model1, model2}, in testConflictOperands()
353 .preparedModels = {model1, model2}, in testConflictOperands()
369 .preparedModels = {preparedModel}, in TEST_P()
376 .preparedModels = {nullptr}, in TEST_P()
382 .preparedModels = {nullptr}, in TEST_P()
393 .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()
236 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
240 const auto hidlPreparedModels = NN_TRY(convert(preparedModels)); in allocate()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
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()
260 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, in allocate() argument
264 const auto aidlPreparedModels = NN_TRY(convert(preparedModels)); in allocate()
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientDevice.h77 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
91 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
DInvalidDevice.h64 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/utils/common/test/
DMockDevice.h49 (const BufferDesc& desc, const std::vector<SharedPreparedModel>& preparedModels,
/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/utils/adapter/src/
DDevice.cpp299 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels) { in downcastAll() argument
301 canonical.reserve(preparedModels.size()); in downcastAll()
302 for (const auto& preparedModel : preparedModels) { in downcastAll()
310 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels, in allocate() argument
314 auto nnPreparedModels = NN_TRY(downcastAll(preparedModels)); in allocate()
541 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels, in allocate() argument
544 auto result = adapter::allocate(kDevice, desc, preparedModels, inputRoles, outputRoles); in allocate()
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DIDevice.aidl115 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/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h39 const std::vector<IPreparedModelParcel>& preparedModels,
DDevice.h78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h76 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DDevice.h76 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/utils/adapter/include/nnapi/hal/
DDevice.h85 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels,
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DDevice.h95 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DMockDevice.h93 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels,
/hardware/interfaces/neuralnetworks/1.3/
DIDevice.hal346 * @param preparedModels A vector of IPreparedModel objects. Must only contain IPreparedModel
369 allocate(BufferDesc desc, vec<IPreparedModel> preparedModels, vec<BufferRole> inputRoles,