Lines Matching refs:operands

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()
410 const uint32_t invalidRank = getInvalidRank(model.operands[operand].type); in mutateOperandRankTest()
418 model->operands[operand].dimensions = std::vector<uint32_t>(invalidRank, 0); in mutateOperandRankTest()
450 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandScaleTest()
451 const float invalidScale = getInvalidScale(model.operands[operand].type); in mutateOperandScaleTest()
456 model->operands[operand].scale = invalidScale; in mutateOperandScaleTest()
490 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandZeroPointTest()
492 getInvalidZeroPoints(model.operands[operand].type); in mutateOperandZeroPointTest()
499 model->operands[operand].zeroPoint = invalidZeroPoint; in mutateOperandZeroPointTest()
555 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandLifeTimeTest()
557 getInvalidLifeTimes(model, modelSize, model.operands[operand]); in mutateOperandLifeTimeTest()
562 toString(model.operands[operand].lifetime); in mutateOperandLifeTimeTest()
566 Operand& operandObj = model->operands[operand]; in mutateOperandLifeTimeTest()
641 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandInputOutputTest()
643 getInputOutputLifeTime(model, modelSize, model.operands[operand]); in mutateOperandInputOutputTest()
648 toString(model.operands[operand].lifetime); in mutateOperandInputOutputTest()
652 Operand& operandObj = model->operands[operand]; in mutateOperandInputOutputTest()
674 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperandNumberOfConsumersTest()
676 getInvalidNumberOfConsumers(model.operands[operand].numberOfConsumers); in mutateOperandNumberOfConsumersTest()
683 model->operands[operand].numberOfConsumers = invalidNumberOfConsumers; in mutateOperandNumberOfConsumersTest()
707 ++model->operands[input].numberOfConsumers; in mutateOperandAddWriterTest()
714 model->operands[newOperation.outputs[outputNum]]; in mutateOperandAddWriterTest()
723 hidl_vec_push_back(&model->operands, operandValue); in mutateOperandAddWriterTest()
802 if (type == model.operands[operand].type || type == OperandType::OEM || in mutateOperationOperandTypeSkip()
872 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in mutateOperationOperandTypeTest()
882 mutateOperand(&model->operands[operand], invalidOperandType); in mutateOperationOperandTypeTest()
915 const uint32_t invalidOperand = model.operands.size(); in mutateOperationInputOperandIndexTest()
932 const uint32_t invalidOperand = model.operands.size(); in mutateOperationOutputOperandIndexTest()
952 if (model.operands[outputOperandIndex].numberOfConsumers > 0) { in mutateOperationRemoveWriteTest()
960 Operand operandValue = model->operands[outputOperandIndex]; in mutateOperationRemoveWriteTest()
969 hidl_vec_push_back(&model->operands, operandValue); in mutateOperationRemoveWriteTest()
991 hidl_vec_removeAt(&model->operands, index); in removeOperand()
1026 for (size_t operand = 0; operand < model.operands.size(); ++operand) { in removeOperandTest()
1040 model->operands[operand].numberOfConsumers--; in removeOperation()
1134 model->operands[operand].numberOfConsumers--; in removeOperationInputTest()