Lines Matching refs:subgraph
476 const Model::Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations() local
477 CHECK_LT(subgraph.inputIndexes[index], subgraph.operands.size()); in validateOperations()
478 return &subgraph.operands[subgraph.inputIndexes[index]]; in validateOperations()
482 const Model::Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations() local
483 CHECK_LT(subgraph.outputIndexes[index], subgraph.operands.size()); in validateOperations()
484 return &subgraph.operands[subgraph.outputIndexes[index]]; in validateOperations()
675 static bool checkNoReferenceCycles(const V1_3::Model& model, const V1_3::Subgraph& subgraph, in checkNoReferenceCycles() argument
677 auto [_, isNew] = path->insert(&subgraph); in checkNoReferenceCycles()
682 for (const V1_3::Operand& operand : subgraph.operands) { in checkNoReferenceCycles()
690 path->erase(&subgraph); in checkNoReferenceCycles()
731 auto validateSubgraph = [&model, mode](const V1_3::Subgraph& subgraph) -> bool { in validateModel() argument
732 return (validateOperands(subgraph.operands, model.operandValues, model.pools, in validateModel()
734 validateOperations(subgraph.operations, subgraph.operands, model.referenced, in validateModel()
736 validateModelInputOutputs(subgraph.inputIndexes, subgraph.operands, in validateModel()
738 validateModelInputOutputs(subgraph.outputIndexes, subgraph.operands, in validateModel()
740 validateGraph(subgraph)); in validateModel()