Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/runtime/test/
DGeneratedTestUtils.cpp160 Model* refModel = &refModels[refIndex]; local
162 if (!refModel->isFinished()) {
164 memory, memoryOffset, refModel, refModels);
165 ASSERT_EQ(refModel->finish(), Result::NO_ERROR);
166 ASSERT_TRUE(refModel->isValid());
168 model->setOperandValueFromModel(index, refModel);
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp875 uint32_t addSubgraph(const ModelBuilder* refModel);
876 void updateOperandLocations(const ModelBuilder* refModel, Model::Subgraph* subgraph);
921 void ModelBuilder::ModelMaker::updateOperandLocations(const ModelBuilder* refModel, in updateOperandLocations() argument
927 operand.location = mOperandValues.append(&refModel->mSmallOperandValues[originalOffset], in updateOperandLocations()
931 operand.location.poolIndex = mMemories.add(refModel->mMemories[originalPoolIndex]); in updateOperandLocations()
940 operand.location.offset = addSubgraph(refModel->mReferencedModels[refModelIndex]); in updateOperandLocations()
945 uint32_t ModelBuilder::ModelMaker::addSubgraph(const ModelBuilder* refModel) { in addSubgraph() argument
947 mRefSubgraphs.push_back(makeSubgraph(refModel)); in addSubgraph()
948 updateOperandLocations(refModel, &mRefSubgraphs.back()); in addSubgraph()
963 for (const auto& refModel : model->mReferencedModels) { in addExtensions() local
[all …]