Lines Matching refs:modelOperand
452 auto isValidSubgraphReference = [&subgraphs](const Operand& modelOperand) -> bool { in validateOperations() argument
453 NN_RET_CHECK(modelOperand.type == OperandType::SUBGRAPH) in validateOperations()
454 << "Unexpected operand type: " << toString(modelOperand.type); in validateOperations()
455 NN_RET_CHECK_LT(modelOperand.location.offset, subgraphs.size()) in validateOperations()
459 auto getSubgraph = [&subgraphs](const Operand& modelOperand) -> const Subgraph* { in validateOperations() argument
460 CHECK_LT(modelOperand.location.offset, subgraphs.size()); in validateOperations()
461 return &subgraphs[modelOperand.location.offset]; in validateOperations()
463 auto getInputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument
464 return getSubgraph(modelOperand)->inputIndexes.size(); in validateOperations()
466 auto getOutputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument
467 return getSubgraph(modelOperand)->outputIndexes.size(); in validateOperations()
469 auto getInputOperand = [&getSubgraph](const Operand& modelOperand, in validateOperations()
471 const Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations()
475 auto getOutputOperand = [&getSubgraph](const Operand& modelOperand, in validateOperations() argument
477 const Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations()