Lines Matching refs:operands

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()
263 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest()
264 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest()
281 if (model.operands[output].numberOfConsumers > 0) { in mutateExecutionOrderTest()
310 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandTypeTest()
316 model->operands[operand].type = static_cast<OperandType>(invalidOperandType); in mutateOperandTypeTest()
340 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandRankTest()
341 const uint32_t invalidRank = getInvalidRank(model.operands[operand].type); in mutateOperandRankTest()
345 model->operands[operand].dimensions = std::vector<uint32_t>(invalidRank, 0); in mutateOperandRankTest()
369 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandScaleTest()
370 const float invalidScale = getInvalidScale(model.operands[operand].type); in mutateOperandScaleTest()
374 model->operands[operand].scale = invalidScale; in mutateOperandScaleTest()
397 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandZeroPointTest()
399 getInvalidZeroPoints(model.operands[operand].type); in mutateOperandZeroPointTest()
405 model->operands[operand].zeroPoint = invalidZeroPoint; in mutateOperandZeroPointTest()
461 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandLifeTimeTest()
463 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
468 toString(model.operands[operand].lifetime); in mutateOperandLifeTimeTest()
471 Operand& operandObj = model->operands[operand]; in mutateOperandLifeTimeTest()
546 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandInputOutputTest()
548 getInputOutputLifeTime(model, modelSize, model.operands[operand]); in mutateOperandInputOutputTest()
553 toString(model.operands[operand].lifetime); in mutateOperandInputOutputTest()
556 Operand& operandObj = model->operands[operand]; in mutateOperandInputOutputTest()
579 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandNumberOfConsumersTest()
581 getInvalidNumberOfConsumers(model.operands[operand].numberOfConsumers); in mutateOperandNumberOfConsumersTest()
587 model->operands[operand].numberOfConsumers = invalidNumberOfConsumers; in mutateOperandNumberOfConsumersTest()
610 ++model->operands[input].numberOfConsumers; in mutateOperandAddWriterTest()
615 Operand operandValue = model->operands[newOperation.outputs[outputNum]]; in mutateOperandAddWriterTest()
623 hidl_vec_push_back(&model->operands, operandValue); in mutateOperandAddWriterTest()
692 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperationOperandTypeTest()
698 if (invalidOperandType == model.operands[operand].type || in mutateOperationOperandTypeTest()
707 mutateOperand(&model->operands[operand], invalidOperandType); in mutateOperationOperandTypeTest()
740 const uint32_t invalidOperand = model.operands.size(); in mutateOperationInputOperandIndexTest()
756 const uint32_t invalidOperand = model.operands.size(); in mutateOperationOutputOperandIndexTest()
775 if (model.operands[outputOperandIndex].numberOfConsumers > 0) { in mutateOperationRemoveWriteTest()
781 Operand operandValue = model->operands[outputOperandIndex]; in mutateOperationRemoveWriteTest()
788 outputOperandIndex = hidl_vec_push_back(&model->operands, operandValue); in mutateOperationRemoveWriteTest()
810 hidl_vec_removeAt(&model->operands, index); in removeOperand()
820 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in removeOperandTest()
831 model->operands[operand].numberOfConsumers--; in removeOperation()
862 model->operands[operand].numberOfConsumers--; in removeOperationInputTest()