Home
last modified time | relevance | path

Searched refs:modelOperand (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NeuralNetworks/common/
DValidateHal.cpp455 auto isValidSubgraphReference = [&canonicalSubgraphs](const Operand& modelOperand) -> bool { in validateOperations() argument
456 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() argument
464 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() argument
468 return getSubgraph(modelOperand)->inputIndexes.size(); in validateOperations()
470 auto getOutputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument
[all …]
DValidation.cpp1587 const Operand& modelOperand) { in validateSubgraphReference() argument
1588 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() argument
1595 return subgraphs.at(modelOperand.location.offset); in getSubgraph()
1597 uint32_t getInputCount(const std::vector<Model::Subgraph>& subgraphs, const Operand& modelOperand) { in getInputCount() argument
1598 return getSubgraph(subgraphs, modelOperand).inputIndexes.size(); in getInputCount()
1601 const Operand& modelOperand) { in getOutputCount() argument
1602 return getSubgraph(subgraphs, modelOperand).outputIndexes.size(); in getOutputCount()
[all …]