Lines Matching refs:subgraph

62     const auto& subgraph = subgraphIndex == 0 ? model.main : model.referenced[subgraphIndex - 1];  in convertSubgraphFromHAL()  local
76 for (int i = 0; i < subgraph.operands.size(); ++i) { in convertSubgraphFromHAL()
77 const auto& operand = subgraph.operands[i]; in convertSubgraphFromHAL()
168 auto subgraph = convertSubgraphFromHAL(nnapi, memoryPools, model, allModels, in convertSubgraphFromHAL() local
171 if (subgraph) { in convertSubgraphFromHAL()
172 resultModel.setOperandValueFromModel(i, subgraph); in convertSubgraphFromHAL()
202 for (int i = 0; i < subgraph.operations.size(); ++i) { in convertSubgraphFromHAL()
203 const auto& operation = subgraph.operations[i]; in convertSubgraphFromHAL()
238 std::vector<uint32_t> inputIndexes(subgraph.inputIndexes.begin(), subgraph.inputIndexes.end()); in convertSubgraphFromHAL()
239 std::vector<uint32_t> outputIndexes(subgraph.outputIndexes.begin(), in convertSubgraphFromHAL()
240 subgraph.outputIndexes.end()); in convertSubgraphFromHAL()
269 const auto& subgraph = sindex == 0 ? model.main : model.referenced[sindex - 1]; in needsCopiedOperandValues() local
270 for (int i = 0; i < subgraph.operands.size(); ++i) { in needsCopiedOperandValues()
271 const auto& operand = subgraph.operands[i]; in needsCopiedOperandValues()
284 bool isValid(const Subgraph& subgraph) { in isValid() argument
288 operandValueKnown.reserve(subgraph.operands.size()); in isValid()
289 std::transform(subgraph.operands.begin(), subgraph.operands.end(), in isValid()
300 for (size_t i = 0; i < subgraph.operations.size(); ++i) { in isValid()
301 const auto& operation = subgraph.operations[i]; in isValid()
327 for (size_t i = 0; i < subgraph.operands.size(); ++i) { in isValid()
332 const auto& operand = subgraph.operands[i]; in isValid()
335 if (std::find(subgraph.outputIndexes.begin(), subgraph.outputIndexes.end(), i) == in isValid()
336 subgraph.outputIndexes.end()) { in isValid()
344 for (auto index : subgraph.inputIndexes) { in isValid()
345 if (subgraph.operands[index].lifetime != OperandLifeTime::SUBGRAPH_INPUT) { in isValid()
350 for (auto index : subgraph.outputIndexes) { in isValid()
351 if (subgraph.operands[index].lifetime != OperandLifeTime::SUBGRAPH_OUTPUT) { in isValid()
366 [](const Subgraph& subgraph) { return isValid(subgraph); })); in isValid() argument