/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | ValidateHal.cpp | 38 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()
|
D | Device.cpp | 52 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/ |
D | MemoryDomainTests.cpp | 342 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/ |
D | MemoryDomainTests.cpp | 324 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/ |
D | Device.cpp | 58 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/ |
D | ResilientDevice.cpp | 216 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/ |
D | Device.cpp | 97 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/ |
D | ValidateHal.h | 37 const std::vector<std::shared_ptr<aidl_hal::IPreparedModel>>& preparedModels,
|
D | InvalidDevice.h | 39 const std::vector<IPreparedModelParcel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | Device.cpp | 289 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/ |
D | ResilientDevice.h | 78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels, 94 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
|
D | InvalidDevice.h | 65 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | MockDevice.h | 51 (const BufferDesc& desc, const std::vector<SharedPreparedModel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 37 …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/ |
D | IDevice.aidl | 37 …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/ |
D | IDevice.aidl | 37 …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/ |
D | IDevice.aidl | 37 …Desc desc, in android.hardware.neuralnetworks.IPreparedModelParcel[] preparedModels, in android.ha… in allocate() argument
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 116 DeviceBuffer allocate(in BufferDesc desc, in IPreparedModelParcel[] preparedModels, in allocate() argument
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | MockDevice.h | 33 (const BufferDesc& desc, const std::vector<IPreparedModelParcel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/ |
D | Device.h | 54 const std::vector<IPreparedModelParcel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/ |
D | Device.h | 77 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/ |
D | Device.h | 78 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | Device.h | 79 const nn::BufferDesc& desc, const std::vector<nn::SharedPreparedModel>& preparedModels,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/ |
D | Device.h | 85 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels,
|