Lines Matching refs:operands
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()
443 model->main.operands[operand].dimensions = in mutateOperandRankTest()
477 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandScaleTest()
478 const float invalidScale = getInvalidScale(model.main.operands[operand].type); in mutateOperandScaleTest()
483 model->main.operands[operand].scale = invalidScale; in mutateOperandScaleTest()
518 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandZeroPointTest()
520 getInvalidZeroPoints(model.main.operands[operand].type); in mutateOperandZeroPointTest()
527 model->main.operands[operand].zeroPoint = invalidZeroPoint; in mutateOperandZeroPointTest()
585 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandLifeTimeTest()
587 getInvalidLifeTimes(model, modelSize, model.main.operands[operand]); in mutateOperandLifeTimeTest()
592 toString(model.main.operands[operand].lifetime); in mutateOperandLifeTimeTest()
596 Operand& operandObj = model->main.operands[operand]; in mutateOperandLifeTimeTest()
678 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperandInputOutputTest()
680 getInputOutputLifeTime(model, modelSize, model.main.operands[operand]); in mutateOperandInputOutputTest()
685 toString(model.main.operands[operand].lifetime); in mutateOperandInputOutputTest()
689 Operand& operandObj = model->main.operands[operand]; in mutateOperandInputOutputTest()
723 model->main.operands[newOperation.outputs[outputNum]]; in mutateOperandAddWriterTest()
730 newOperation.outputs[outputNum] = model->main.operands.size(); in mutateOperandAddWriterTest()
731 model->main.operands.push_back(operandValue); in mutateOperandAddWriterTest()
808 if (type == model.main.operands[operand].type) { in mutateOperationOperandTypeSkip()
914 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in mutateOperationOperandTypeTest()
924 mutateOperand(&model->main.operands[operand], invalidOperandType); in mutateOperationOperandTypeTest()
958 const uint32_t invalidOperand = model.main.operands.size(); in mutateOperationInputOperandIndexTest()
977 const uint32_t invalidOperand = model.main.operands.size(); in mutateOperationOutputOperandIndexTest()
1009 Operand operandValue = model->main.operands[outputOperandIndex]; in mutateOperationRemoveWriteTest()
1016 outputOperandIndex = model->main.operands.size(); in mutateOperationRemoveWriteTest()
1017 model->main.operands.push_back(operandValue); in mutateOperationRemoveWriteTest()
1038 model->main.operands.erase(model->main.operands.begin() + index); in removeOperand()
1085 for (size_t operand = 0; operand < model.main.operands.size(); ++operand) { in removeOperandTest()
1318 nn::countNumberOfConsumers(model.main.operands.size(), in validateModel()