/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 | BasicTests.cpp | 77 const std::vector<Operand> operands = { in TEST_P() local 147 .operands = operands, in TEST_P()
|
D | Utils.cpp | 109 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 126 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() 158 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest()
|
/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() 283 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 284 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest() 301 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 330 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest() 337 model->operands[operand].type = in mutateOperandTypeTest() 362 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.1/utils/src/ |
D | Conversions.cpp | 103 NN_TRY(hal::utils::countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 104 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 105 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 106 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 109 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 114 .operands = NN_TRY(unvalidatedConvert(model.operands)), in unvalidatedConvert() 222 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 226 NN_TRY(hal::utils::countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 227 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 228 for (size_t i = 0; i < operands.size(); ++i) { in unvalidatedConvert() [all …]
|
/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() 322 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 323 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest() 340 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest() 369 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest() 376 model->operands[operand].type = in mutateOperandTypeTest() 409 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 …]
|
D | BasicTests.cpp | 158 const std::vector<Operand> operands = { in TEST_P() local 228 .operands = operands, in TEST_P()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | ValidateModel.cpp | 109 model->main.operands.push_back({ in addOperand() 117 return model->main.operands.size() - 1; in addOperand() 122 model->main.operands[index].lifetime = lifetime; in addOperand() 280 size += sizeForBinder(subgraph.operands); in sizeForBinder() 347 if (model.main.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest() 348 model.main.operands[input].lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateExecutionOrderTest() 394 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandTypeTest() 401 model->main.operands[operand].type = in mutateOperandTypeTest() 434 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandRankTest() 435 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 | 136 kTestModel.main.operands[kTestModel.main.inputIndexes[index]].data; in allocateInternal() 169 std::vector<Operand> operands(testSubgraph.operands.size()); in createSubgraph() local 170 for (uint32_t i = 0; i < testSubgraph.operands.size(); i++) { in createSubgraph() 171 const auto& op = testSubgraph.operands[i]; in createSubgraph() 206 operands[i] = {.type = static_cast<OperandType>(op.type), in createSubgraph() 224 return {.operands = std::move(operands), in createSubgraph() 298 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne() 312 auto& dims = model->main.operands[i].dimensions; in makeOutputDimensionsUnspecified() 363 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 396 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() [all …]
|
D | Utils.cpp | 187 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 204 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() 246 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest()
|
D | MemoryDomainTests.cpp | 70 for (auto& operand : testModel->main.operands) { in createDummyData() 124 const std::vector<TestOperand> operands = { in createConvModel() local 137 model.main.operands.insert(model.main.operands.end(), operands.begin(), operands.end()); in createConvModel() 138 const uint32_t inputIndex = operands.size() * i; in createConvModel() 139 const uint32_t outputIndex = inputIndex + operands.size() - 1; in createConvModel() 140 std::vector<uint32_t> inputs(operands.size() - 1); in createConvModel() 175 .operands = in createSingleAddModel()
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | Conversions.cpp | 158 NN_TRY(hal::utils::countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 159 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 160 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 161 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 164 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 169 .operands = NN_TRY(unvalidatedConvert(model.operands)), in unvalidatedConvert() 345 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 349 NN_TRY(hal::utils::countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 350 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 351 for (size_t i = 0; i < operands.size(); ++i) { in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Conversions.cpp | 191 NN_TRY(hal::utils::countNumberOfConsumers(model.operands.size(), operations)); in unvalidatedConvert() 192 CHECK(model.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 193 for (size_t i = 0; i < model.operands.size(); ++i) { in unvalidatedConvert() 194 if (model.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 197 << numberOfConsumers[i] << " but found " << model.operands[i].numberOfConsumers; in unvalidatedConvert() 202 .operands = NN_TRY(unvalidatedConvert(model.operands)), in unvalidatedConvert() 481 auto operands = NN_TRY(unvalidatedConvert(model.main.operands)); in unvalidatedConvert() local 485 NN_TRY(hal::utils::countNumberOfConsumers(operands.size(), model.main.operations)); in unvalidatedConvert() 486 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 487 for (size_t i = 0; i < operands.size(); ++i) { in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Conversions.cpp | 198 NN_TRY(hal::utils::countNumberOfConsumers(subgraph.operands.size(), operations)); in unvalidatedConvert() 199 CHECK(subgraph.operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 200 for (size_t i = 0; i < subgraph.operands.size(); ++i) { in unvalidatedConvert() 201 if (subgraph.operands[i].numberOfConsumers != numberOfConsumers[i]) { in unvalidatedConvert() 205 << subgraph.operands[i].numberOfConsumers; in unvalidatedConvert() 210 .operands = NN_TRY(unvalidatedConvert(subgraph.operands)), in unvalidatedConvert() 543 auto operands = NN_TRY(unvalidatedConvert(subgraph.operands)); in unvalidatedConvert() local 547 NN_TRY(hal::utils::countNumberOfConsumers(operands.size(), subgraph.operations)); in unvalidatedConvert() 548 CHECK(operands.size() == numberOfConsumers.size()); in unvalidatedConvert() 549 for (size_t i = 0; i < operands.size(); ++i) { in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
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/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/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;
|
/hardware/interfaces/neuralnetworks/1.2/ |
D | IPreparedModel.hal | 58 * operands have fully specified dimensions, and the inputs to the function 62 * - if at execution time every operation's input operands have legal 110 * operands have fully specified dimensions, and the inputs to the function 111 * are valid, and at execution time every operation's input operands have 135 * @return outputShapes A list of shape information of model output operands. 153 * operands have fully specified dimensions, and a valid serialized Request 155 * operation's input operands have legal values, then the execution should
|
/hardware/interfaces/neuralnetworks/1.0/ |
D | IPreparedModel.hal | 53 * operands have fully specified dimensions, and the inputs to the function 57 * - if at execution time every operation's input operands have legal
|