/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | ValidateHal.cpp | 49 std::vector<aidl_hal::Operand> operands; in validateMemoryDesc() local 50 operands.reserve(inputRoles.size() + outputRoles.size()); in validateMemoryDesc() 65 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDesc() 81 operands.push_back(model->main.operands[outputIndexes[role.ioIndex]]); in validateMemoryDesc() 84 CHECK(!operands.empty()); in validateMemoryDesc() 85 const auto opType = operands[0].type; in validateMemoryDesc() 94 for (const auto& operand : operands) { in validateMemoryDesc() 95 NN_RET_CHECK(operand.type == operands[0].type) in validateMemoryDesc() 96 << toString(operand.type) << " vs " << toString(operands[0].type); in validateMemoryDesc() 97 NN_RET_CHECK_EQ(operand.scale, operands[0].scale); in validateMemoryDesc() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | GeneratedTestHarness.cpp | 46 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel() local 48 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 49 const auto& op = testModel.main.operands[i]; in createModel() 64 operands[i] = {.type = static_cast<OperandType>(op.type), in createModel() 84 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 85 const auto& op = testModel.main.operands[i]; in createModel() 89 std::copy(begin, end, operandValues.data() + operands[i].location.offset); in createModel() 106 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 107 const auto& op = testModel.main.operands[i]; in createModel() 111 std::copy(begin, end, mappedPtr + operands[i].location.offset); in createModel() [all …]
|
D | ValidateModel.cpp | 76 return hidl_vec_push_back(&model->operands, in addOperand() 90 model->operands[index].numberOfConsumers = 1; in addOperand() 91 model->operands[index].lifetime = lifetime; in addOperand() 219 size += sizeForBinder(model.operands); in sizeForBinder() 261 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 262 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest() 279 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 308 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest() 314 model->operands[operand].type = static_cast<OperandType>(invalidOperandType); in mutateOperandTypeTest() 338 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandRankTest() [all …]
|
D | BasicTests.cpp | 77 const std::vector<Operand> operands = { in TEST_P() local 147 .operands = operands, in TEST_P()
|
/hardware/interfaces/neuralnetworks/1.1/utils/src/ |
D | Conversions.cpp | 104 NN_TRY(countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 105 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 106 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 107 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 110 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 114 auto operands = NN_TRY(unvalidatedConvert(model.operands)); in unvalidatedConvert() local 116 .operands = std::move(operands), in unvalidatedConvert() 230 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 234 NN_TRY(countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 235 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | GeneratedTestHarness.cpp | 53 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel() local 55 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 56 const auto& op = testModel.main.operands[i]; in createModel() 71 operands[i] = {.type = static_cast<OperandType>(op.type), in createModel() 91 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 92 const auto& op = testModel.main.operands[i]; in createModel() 96 std::copy(begin, end, operandValues.data() + operands[i].location.offset); in createModel() 113 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 114 const auto& op = testModel.main.operands[i]; in createModel() 118 std::copy(begin, end, mappedPtr + operands[i].location.offset); in createModel() [all …]
|
D | ValidateModel.cpp | 95 return hidl_vec_push_back(&model->operands, in addOperand() 109 model->operands[index].numberOfConsumers = 1; in addOperand() 110 model->operands[index].lifetime = lifetime; in addOperand() 238 size += sizeForBinder(model.operands); in sizeForBinder() 281 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 282 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest() 299 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 328 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest() 335 model->operands[operand].type = in mutateOperandTypeTest() 360 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandRankTest() [all …]
|
D | BasicTests.cpp | 84 const std::vector<Operand> operands = { in TEST_P() local 154 .operands = operands, in TEST_P()
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | ValidateModel.cpp | 96 return hidl_vec_push_back(&model->operands, in addOperand() 110 model->operands[index].numberOfConsumers = 1; in addOperand() 111 model->operands[index].lifetime = lifetime; in addOperand() 276 size += sizeForBinder(model.operands); in sizeForBinder() 320 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 321 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest() 338 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 367 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest() 374 model->operands[operand].type = in mutateOperandTypeTest() 407 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandRankTest() [all …]
|
D | GeneratedTestHarness.cpp | 79 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel() local 81 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 82 const auto& op = testModel.main.operands[i]; in createModel() 103 operands[i] = {.type = static_cast<OperandType>(op.type), in createModel() 124 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 125 const auto& op = testModel.main.operands[i]; in createModel() 129 std::copy(begin, end, operandValues.data() + operands[i].location.offset); in createModel() 146 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel() 147 const auto& op = testModel.main.operands[i]; in createModel() 151 std::copy(begin, end, mappedPtr + operands[i].location.offset); in createModel() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | ValidateModel.cpp | 103 return hidl_vec_push_back(&model->main.operands, in addOperand() 117 model->main.operands[index].numberOfConsumers = 1; in addOperand() 118 model->main.operands[index].lifetime = lifetime; in addOperand() 273 size += sizeForBinder(subgraph.operands); in sizeForBinder() 337 if (model.main.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 338 model.main.operands[input].lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateExecutionOrderTest() 356 if (model.main.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 386 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandTypeTest() 393 model->main.operands[operand].type = in mutateOperandTypeTest() 426 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandRankTest() [all …]
|
D | GeneratedTestHarness.cpp | 162 kTestModel.main.operands[kTestModel.main.inputIndexes[index]].data; in allocateInternal() 197 hidl_vec<Operand> operands(testSubgraph.operands.size()); in createSubgraph() local 198 for (uint32_t i = 0; i < testSubgraph.operands.size(); i++) { in createSubgraph() 199 const auto& op = testSubgraph.operands[i]; in createSubgraph() 232 operands[i] = {.type = static_cast<OperandType>(op.type), in createSubgraph() 251 return {.operands = std::move(operands), in createSubgraph() 320 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne() 332 auto& dims = model->main.operands[i].dimensions; in makeOutputDimensionsUnspecified() 375 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 405 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() [all …]
|
D | BasicTests.cpp | 99 const std::vector<Operand> operands = { in TEST_P() local 169 .operands = operands, in TEST_P()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | ValidateModel.cpp | 138 model->main.operands.push_back({ in addOperand() 146 return model->main.operands.size() - 1; in addOperand() 151 model->main.operands[index].lifetime = lifetime; in addOperand() 309 size += sizeForBinder(subgraph.operands); in sizeForBinder() 374 if (model.main.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 375 model.main.operands[input].lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateExecutionOrderTest() 421 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandTypeTest() 428 model->main.operands[operand].type = in mutateOperandTypeTest() 461 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandRankTest() 462 const uint32_t invalidRank = getInvalidRank(model.main.operands[operand].type); in mutateOperandRankTest() [all …]
|
D | BasicTests.cpp | 90 const std::vector<Operand> operands = { in TEST_P() local 154 .operands = operands, in TEST_P()
|
D | GeneratedTestHarness.cpp | 179 kTestModel.main.operands[kTestModel.main.inputIndexes[index]].data; in allocateInternal() 212 std::vector<Operand> operands(testSubgraph.operands.size()); in createSubgraph() local 213 for (uint32_t i = 0; i < testSubgraph.operands.size(); i++) { in createSubgraph() 214 const auto& op = testSubgraph.operands[i]; in createSubgraph() 249 operands[i] = {.type = static_cast<OperandType>(op.type), in createSubgraph() 267 return {.operands = std::move(operands), in createSubgraph() 345 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne() 359 auto& dims = model->main.operands[i].dimensions; in makeOutputDimensionsUnspecified() 410 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 443 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Conversions.cpp | 196 NN_TRY(countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 197 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 198 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 199 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 202 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 206 auto operands = NN_TRY(unvalidatedConvert(model.operands)); in unvalidatedConvert() local 208 .operands = std::move(operands), in unvalidatedConvert() 497 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 501 NN_TRY(countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 502 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | Conversions.cpp | 297 NN_TRY(countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 298 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 299 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 300 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 303 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 307 auto operands = NN_TRY(unvalidatedConvert(model.operands)); in unvalidatedConvert() local 309 .operands = std::move(operands), in unvalidatedConvert() 583 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 587 NN_TRY(countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 588 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Conversions.cpp | 212 NN_TRY(countNumberOfConsumers(subgraph.operands.size(), operations)); in unvalidatedConvert() 213 CHECK(subgraph.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 214 for (size_t i = 0; i < subgraph.operands.size(); ++i) { in unvalidatedConvert() 215 if (subgraph.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 219 << subgraph.operands[i].numberOfConsumers; in unvalidatedConvert() 223 auto operands = NN_TRY(unvalidatedConvert(subgraph.operands)); in unvalidatedConvert() local 225 .operands = std::move(operands), in unvalidatedConvert() 578 auto operands = NN_TRY(unvalidatedConvert(subgraph.operands)); in unvalidatedConvert() local 582 NN_TRY(countNumberOfConsumers(operands.size(), subgraph.operations)); in unvalidatedConvert() 583 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 37 android.hardware.neuralnetworks.Operand[] operands;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 37 android.hardware.neuralnetworks.Operand[] operands;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 37 android.hardware.neuralnetworks.Operand[] operands;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 37 android.hardware.neuralnetworks.Operand[] operands;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 37 android.hardware.neuralnetworks.Operand[] operands;
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | Subgraph.aidl | 30 Operand[] operands;
|