Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/test/
DGeneratedTestUtils.cpp161 Model* refModel = &refModels[refIndex]; local
163 if (!refModel->isFinished()) {
165 memory, memoryOffset, refModel, refModels);
166 ASSERT_EQ(refModel->finish(), Result::NO_ERROR);
167 ASSERT_TRUE(refModel->isValid());
169 model->setOperandValueFromModel(index, refModel);
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp905 uint32_t addSubgraph(const ModelBuilder* refModel);
906 void updateOperandLocations(const ModelBuilder* refModel, Model::Subgraph* subgraph);
959 void ModelBuilder::ModelMaker::updateOperandLocations(const ModelBuilder* refModel, in updateOperandLocations() argument
965 operand.location = mOperandValues.append(&refModel->mSmallOperandValues[originalOffset], in updateOperandLocations()
969 operand.location.poolIndex = mMemories.add(refModel->mMemories[originalPoolIndex]); in updateOperandLocations()
978 operand.location.offset = addSubgraph(refModel->mReferencedModels[refModelIndex]); in updateOperandLocations()
983 uint32_t ModelBuilder::ModelMaker::addSubgraph(const ModelBuilder* refModel) { in addSubgraph() argument
985 mRefSubgraphs.push_back(makeSubgraph(refModel)); in addSubgraph()
986 updateOperandLocations(refModel, &mRefSubgraphs.back()); in addSubgraph()
1001 for (const auto& refModel : model->mReferencedModels) { in addExtensions() local
[all …]