Home
last modified time | relevance | path

Searched refs:ioIndex (Results 1 – 19 of 19) sorted by relevance

/aosp12/packages/modules/NeuralNetworks/common/
H A DAidlValidateHal.cpp58 NN_RET_CHECK_LT(role.ioIndex, inputIndexes.size()); in validateMemoryDesc()
61 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::INPUT, role.ioIndex); in validateMemoryDesc()
63 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDesc()
72 NN_RET_CHECK_LT(role.ioIndex, outputIndexes.size()); in validateMemoryDesc()
75 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::OUTPUT, role.ioIndex); in validateMemoryDesc()
77 operands.push_back(model->main.operands[outputIndexes[role.ioIndex]]); in validateMemoryDesc()
H A DValidateHal.cpp889 NN_RET_CHECK_LT(role.ioIndex, inputIndexes.size()); in validateMemoryDesc()
892 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::INPUT, role.ioIndex); in validateMemoryDesc()
894 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDesc()
903 NN_RET_CHECK_LT(role.ioIndex, outputIndexes.size()); in validateMemoryDesc()
906 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::OUTPUT, role.ioIndex); in validateMemoryDesc()
908 operands.push_back(model->main.operands[outputIndexes[role.ioIndex]]); in validateMemoryDesc()
H A DValidation.cpp1285 NN_VALIDATE_LT(role.ioIndex, inputIndexes.size()); in validateMemoryDescImpl()
1288 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::INPUT, role.ioIndex); in validateMemoryDescImpl()
1290 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDescImpl()
1299 NN_VALIDATE_LT(role.ioIndex, outputIndexes.size()); in validateMemoryDescImpl()
1302 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::OUTPUT, role.ioIndex); in validateMemoryDescImpl()
1304 operands.push_back(model->main.operands[outputIndexes[role.ioIndex]]); in validateMemoryDescImpl()
H A DTypeUtils.cpp810 << ", .ioIndex=" << bufferRole.ioIndex << ", .probability=" << bufferRole.probability in operator <<()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp380 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}}, in TEST_P()
396 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}}, in TEST_P()
413 .inputRoles = {{.modelIndex = 1, .ioIndex = 0, .frequency = 1.0f}}, in TEST_P()
430 .inputRoles = {{.modelIndex = 0, .ioIndex = 1, .frequency = 1.0f}}, in TEST_P()
465 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}, in TEST_P()
466 {.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}}, in TEST_P()
470 .outputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}, in TEST_P()
477 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}, in TEST_P()
478 {.modelIndex = 1, .ioIndex = 0, .frequency = 1.0f}}, in TEST_P()
482 .outputRoles = {{.modelIndex = 0, .ioIndex = 0, .frequency = 1.0f}, in TEST_P()
[all …]
H A DGeneratedTestHarness.cpp126 BufferRole role = {.modelIndex = 0, .ioIndex = index, .frequency = 1.0f}; in allocateInternal()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DMemoryDomainTests.cpp377 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}}, in TEST_P()
394 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}}, in TEST_P()
411 .inputRoles = {{.modelIndex = 1, .ioIndex = 0, .probability = 1.0f}}, in TEST_P()
428 .inputRoles = {{.modelIndex = 0, .ioIndex = 1, .probability = 1.0f}}, in TEST_P()
463 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}, in TEST_P()
464 {.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}}, in TEST_P()
468 .outputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}, in TEST_P()
475 .inputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}, in TEST_P()
476 {.modelIndex = 1, .ioIndex = 0, .probability = 1.0f}}, in TEST_P()
480 .outputRoles = {{.modelIndex = 0, .ioIndex = 0, .probability = 1.0f}, in TEST_P()
[all …]
H A DGeneratedTestHarness.cpp105 BufferRole role = {.modelIndex = 0, .ioIndex = index, .probability = 1.0f}; in allocateInternal()
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
H A DBufferRole.aidl38 int ioIndex;
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
H A DBufferRole.aidl38 int ioIndex;
/aosp12/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
H A DBufferRole.aidl32 int ioIndex;
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/
H A DShimDevice.cpp373 slDesc, pmodel->getCompilation().getHandle(), role.ioIndex, role.probability); in allocate()
382 const auto& op = model.getOperands()[model.getInputs()[role.ioIndex]]; in allocate()
411 slDesc, pmodel->getCompilation().getHandle(), role.ioIndex, role.probability); in allocate()
419 const auto& op = model.getOperands()[model.getOutputs()[role.ioIndex]]; in allocate()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DConversions.cpp439 VERIFY_NON_NEGATIVE(bufferRole.ioIndex) << "BufferRole: ioIndex must not be negative"; in unvalidatedConvert()
442 .ioIndex = static_cast<uint32_t>(bufferRole.ioIndex), in unvalidatedConvert()
745 VERIFY_LE_INT32_MAX(bufferRole.ioIndex) in unvalidatedConvert()
749 .ioIndex = static_cast<int32_t>(bufferRole.ioIndex), in unvalidatedConvert()
/aosp12/packages/modules/NeuralNetworks/runtime/test/fuzzing/
H A DRandomGraphGenerator.h66 int32_t ioIndex = -1; member
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/
H A DConversions.cpp224 .ioIndex = bufferRole.ioIndex, in unvalidatedConvert()
568 .ioIndex = bufferRole.ioIndex, in unvalidatedConvert()
/aosp12/packages/modules/NeuralNetworks/common/include/nnapi/
H A DTypes.h827 uint32_t ioIndex = 0; member
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DMemory.cpp378 BufferRole role = {.modelIndex = modelIndex, .ioIndex = ind, .probability = prob}; in addRole()
H A DExecutionPlan.cpp2031 for (const auto& [stepIndex, type, ioIndex] : it->second) { in forEachStepRoleOfSourceOperand()
2034 callback(step->getPreparedStepModel().get(), type, ioIndex); in forEachStepRoleOfSourceOperand()
/aosp12/hardware/interfaces/neuralnetworks/1.3/
H A Dtypes.hal5724 uint32_t ioIndex;