Searched refs:modelOperand (Results 1 – 2 of 2) sorted by relevance
455 auto isValidSubgraphReference = [&canonicalSubgraphs](const Operand& modelOperand) -> bool { in validateOperations() argument456 NN_RET_CHECK(modelOperand.type == OperandType::SUBGRAPH) in validateOperations()457 << "Unexpected operand type: " << modelOperand.type; in validateOperations()458 NN_RET_CHECK_LT(modelOperand.location.offset, canonicalSubgraphs.size()) in validateOperations()463 [&canonicalSubgraphs](const Operand& modelOperand) -> const Model::Subgraph* { in validateOperations() argument464 CHECK_LT(modelOperand.location.offset, canonicalSubgraphs.size()); in validateOperations()465 return &canonicalSubgraphs[modelOperand.location.offset]; in validateOperations()467 auto getInputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument468 return getSubgraph(modelOperand)->inputIndexes.size(); in validateOperations()470 auto getOutputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument[all …]
1587 const Operand& modelOperand) { in validateSubgraphReference() argument1588 NN_VALIDATE_EQ(modelOperand.type, OperandType::SUBGRAPH) in validateSubgraphReference()1589 << "Unexpected operand type: " << modelOperand.type; in validateSubgraphReference()1590 NN_VALIDATE_LT(modelOperand.location.offset, subgraphs.size()) << "Invalid subgraph reference"; in validateSubgraphReference()1594 const Operand& modelOperand) { in getSubgraph() argument1595 return subgraphs.at(modelOperand.location.offset); in getSubgraph()1597 uint32_t getInputCount(const std::vector<Model::Subgraph>& subgraphs, const Operand& modelOperand) { in getInputCount() argument1598 return getSubgraph(subgraphs, modelOperand).inputIndexes.size(); in getInputCount()1601 const Operand& modelOperand) { in getOutputCount() argument1602 return getSubgraph(subgraphs, modelOperand).outputIndexes.size(); in getOutputCount()[all …]