Home
last modified time | relevance | path

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

/aosp12/packages/modules/NeuralNetworks/common/
H A DValidateHal.cpp456 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()
464 CHECK_LT(modelOperand.location.offset, canonicalSubgraphs.size()); in validateOperations()
465 return &canonicalSubgraphs[modelOperand.location.offset]; in validateOperations()
468 return getSubgraph(modelOperand)->inputIndexes.size(); in validateOperations()
471 return getSubgraph(modelOperand)->outputIndexes.size(); in validateOperations()
473 auto getInputOperand = [&getSubgraph](const Operand& modelOperand, in validateOperations()
475 const Model::Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations()
479 auto getOutputOperand = [&getSubgraph](const Operand& modelOperand, in validateOperations() argument
[all …]
H A 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()
1594 const Operand& modelOperand) { in getSubgraph() argument
1595 return subgraphs.at(modelOperand.location.offset); in getSubgraph()
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()
1605 const Operand& modelOperand, uint32_t index) { in getInputOperand() argument
1606 const Model::Subgraph& subgraph = getSubgraph(subgraphs, modelOperand); in getInputOperand()
[all …]