Lines Matching refs:OperandLifeTime

114             .lifetime = OperandLifeTime::SUBGRAPH_INPUT,  in addOperand()
120 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
347 if (model.main.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest()
348 model.main.operands[input].lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateExecutionOrderTest()
535 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
542 std::vector<OperandLifeTime> ret; in getInvalidLifeTimes()
544 case OperandLifeTime::SUBGRAPH_OUTPUT: in getInvalidLifeTimes()
545 case OperandLifeTime::TEMPORARY_VARIABLE: in getInvalidLifeTimes()
547 OperandLifeTime::SUBGRAPH_INPUT, in getInvalidLifeTimes()
548 OperandLifeTime::CONSTANT_COPY, in getInvalidLifeTimes()
551 case OperandLifeTime::CONSTANT_COPY: in getInvalidLifeTimes()
552 case OperandLifeTime::CONSTANT_POOL: in getInvalidLifeTimes()
553 case OperandLifeTime::SUBGRAPH_INPUT: in getInvalidLifeTimes()
555 OperandLifeTime::TEMPORARY_VARIABLE, in getInvalidLifeTimes()
556 OperandLifeTime::SUBGRAPH_OUTPUT, in getInvalidLifeTimes()
559 case OperandLifeTime::NO_VALUE: in getInvalidLifeTimes()
566 case OperandLifeTime::SUBGRAPH: in getInvalidLifeTimes()
577 ret.erase(std::remove(ret.begin(), ret.end(), OperandLifeTime::CONSTANT_COPY), ret.end()); in getInvalidLifeTimes()
586 const std::vector<OperandLifeTime> invalidLifeTimes = in mutateOperandLifeTimeTest()
588 for (OperandLifeTime invalidLifeTime : invalidLifeTimes) { in mutateOperandLifeTimeTest()
598 case OperandLifeTime::SUBGRAPH_INPUT: { in mutateOperandLifeTimeTest()
604 case OperandLifeTime::SUBGRAPH_OUTPUT: { in mutateOperandLifeTimeTest()
616 case OperandLifeTime::CONSTANT_COPY: { in mutateOperandLifeTimeTest()
620 case OperandLifeTime::SUBGRAPH_INPUT: in mutateOperandLifeTimeTest()
623 case OperandLifeTime::SUBGRAPH_OUTPUT: in mutateOperandLifeTimeTest()
636 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
642 case OperandLifeTime::CONSTANT_COPY: in getInputOutputLifeTime()
643 case OperandLifeTime::CONSTANT_POOL: in getInputOutputLifeTime()
644 return OperandLifeTime::SUBGRAPH_INPUT; in getInputOutputLifeTime()
645 case OperandLifeTime::SUBGRAPH_INPUT: { in getInputOutputLifeTime()
652 return OperandLifeTime::CONSTANT_COPY; in getInputOutputLifeTime()
654 case OperandLifeTime::SUBGRAPH_OUTPUT: in getInputOutputLifeTime()
655 return OperandLifeTime::TEMPORARY_VARIABLE; in getInputOutputLifeTime()
656 case OperandLifeTime::TEMPORARY_VARIABLE: in getInputOutputLifeTime()
657 return OperandLifeTime::SUBGRAPH_OUTPUT; in getInputOutputLifeTime()
658 case OperandLifeTime::NO_VALUE: in getInputOutputLifeTime()
665 case OperandLifeTime::SUBGRAPH: in getInputOutputLifeTime()
679 const std::optional<OperandLifeTime> changedLifeTime = in mutateOperandInputOutputTest()
692 if (*changedLifeTime == OperandLifeTime::CONSTANT_COPY) { in mutateOperandInputOutputTest()
724 if (operandValue.lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateOperandAddWriterTest()
725 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperandAddWriterTest()
728 OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperandAddWriterTest()
1010 if (operandValue.lifetime == OperandLifeTime::SUBGRAPH_OUTPUT) { in mutateOperationRemoveWriteTest()
1011 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperationRemoveWriteTest()
1014 OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperationRemoveWriteTest()
1254 uint32_t index = addOperand(model, OperandLifeTime::SUBGRAPH_INPUT); in addOperationInputTest()
1269 uint32_t index = addOperand(model, OperandLifeTime::SUBGRAPH_OUTPUT); in addOperationOutputTest()