Lines Matching refs:operands

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()
363 const uint32_t invalidRank = getInvalidRank(model.operands[operand].type); in mutateOperandRankTest()
368 model->operands[operand].dimensions = std::vector<uint32_t>(invalidRank, 0); in mutateOperandRankTest()
392 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandScaleTest()
393 const float invalidScale = getInvalidScale(model.operands[operand].type); in mutateOperandScaleTest()
398 model->operands[operand].scale = invalidScale; in mutateOperandScaleTest()
421 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandZeroPointTest()
423 getInvalidZeroPoints(model.operands[operand].type); in mutateOperandZeroPointTest()
430 model->operands[operand].zeroPoint = invalidZeroPoint; in mutateOperandZeroPointTest()
486 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandLifeTimeTest()
488 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
493 toString(model.operands[operand].lifetime); in mutateOperandLifeTimeTest()
497 Operand& operandObj = model->operands[operand]; in mutateOperandLifeTimeTest()
572 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandInputOutputTest()
574 getInputOutputLifeTime(model, modelSize, model.operands[operand]); in mutateOperandInputOutputTest()
579 toString(model.operands[operand].lifetime); in mutateOperandInputOutputTest()
583 Operand& operandObj = model->operands[operand]; in mutateOperandInputOutputTest()
606 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandNumberOfConsumersTest()
608 getInvalidNumberOfConsumers(model.operands[operand].numberOfConsumers); in mutateOperandNumberOfConsumersTest()
615 model->operands[operand].numberOfConsumers = invalidNumberOfConsumers; in mutateOperandNumberOfConsumersTest()
639 ++model->operands[input].numberOfConsumers; in mutateOperandAddWriterTest()
646 model->operands[newOperation.outputs[outputNum]]; in mutateOperandAddWriterTest()
655 hidl_vec_push_back(&model->operands, operandValue); in mutateOperandAddWriterTest()
724 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperationOperandTypeTest()
730 if (invalidOperandType == model.operands[operand].type || in mutateOperationOperandTypeTest()
740 mutateOperand(&model->operands[operand], invalidOperandType); in mutateOperationOperandTypeTest()
774 const uint32_t invalidOperand = model.operands.size(); in mutateOperationInputOperandIndexTest()
791 const uint32_t invalidOperand = model.operands.size(); in mutateOperationOutputOperandIndexTest()
811 if (model.operands[outputOperandIndex].numberOfConsumers > 0) { in mutateOperationRemoveWriteTest()
819 Operand operandValue = model->operands[outputOperandIndex]; in mutateOperationRemoveWriteTest()
828 hidl_vec_push_back(&model->operands, operandValue); in mutateOperationRemoveWriteTest()
850 hidl_vec_removeAt(&model->operands, index); in removeOperand()
860 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in removeOperandTest()
871 model->operands[operand].numberOfConsumers--; in removeOperation()
904 model->operands[operand].numberOfConsumers--; in removeOperationInputTest()