Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/
DValidateHal.cpp456 auto isValidSubgraphReference = [&canonicalSubgraphs](const Operand& modelOperand) -> bool { in validateOperations() argument
457 NN_RET_CHECK(modelOperand.type == OperandType::SUBGRAPH) in validateOperations()
458 << "Unexpected operand type: " << modelOperand.type; in validateOperations()
459 NN_RET_CHECK_LT(modelOperand.location.offset, canonicalSubgraphs.size()) in validateOperations()
464 [&canonicalSubgraphs](const Operand& modelOperand) -> const Model::Subgraph* { in validateOperations() argument
465 CHECK_LT(modelOperand.location.offset, canonicalSubgraphs.size()); in validateOperations()
466 return &canonicalSubgraphs[modelOperand.location.offset]; in validateOperations()
468 auto getInputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument
469 return getSubgraph(modelOperand)->inputIndexes.size(); in validateOperations()
471 auto getOutputCount = [&getSubgraph](const Operand& modelOperand) -> uint32_t { in validateOperations() argument
[all …]
/packages/modules/NeuralNetworks/common/types/src/
DValidation.cpp1541 const Operand& modelOperand) { in validateSubgraphReference() argument
1542 NN_RET_CHECK_EQ(modelOperand.type, OperandType::SUBGRAPH) in validateSubgraphReference()
1543 << "Unexpected operand type: " << modelOperand.type; in validateSubgraphReference()
1544 NN_RET_CHECK_LT(modelOperand.location.offset, subgraphs.size()) << "Invalid subgraph reference"; in validateSubgraphReference()
1548 const Operand& modelOperand) { in getSubgraph() argument
1549 return subgraphs.at(modelOperand.location.offset); in getSubgraph()
1551 uint32_t getInputCount(const std::vector<Model::Subgraph>& subgraphs, const Operand& modelOperand) { in getInputCount() argument
1552 return getSubgraph(subgraphs, modelOperand).inputIndexes.size(); in getInputCount()
1555 const Operand& modelOperand) { in getOutputCount() argument
1556 return getSubgraph(subgraphs, modelOperand).outputIndexes.size(); in getOutputCount()
[all …]