Searched refs:bodyModel (Results 1 – 6 of 6) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestControlFlow.cpp | 63 Model bodyModel; in TEST_F() local 65 uint32_t i = bodyModel.addOperand(&counterType); in TEST_F() 66 uint32_t n = bodyModel.addOperand(&counterType); in TEST_F() 67 uint32_t one = bodyModel.addConstantOperand(&counterType, 1.0f); in TEST_F() 68 uint32_t noActivation = bodyModel.addConstantOperand(&activationType, kNoActivation); in TEST_F() 69 uint32_t iOut = bodyModel.addOperand(&counterType); in TEST_F() 70 bodyModel.addOperation(ANEURALNETWORKS_ADD, {i, one, noActivation}, {iOut}); in TEST_F() 71 bodyModel.identifyInputsAndOutputs({i, n}, {iOut}); in TEST_F() 72 ASSERT_EQ(bodyModel.finish(), Result::NO_ERROR); in TEST_F() 73 ASSERT_TRUE(bodyModel.isValid()); in TEST_F() [all …]
|
D | TestFailingDriver.cpp | 118 WrapperModel bodyModel; in TEST_F() local 120 uint32_t f = bodyModel.addOperand(&floatType); in TEST_F() 121 uint32_t b = bodyModel.addOperand(&boolType); in TEST_F() 122 uint32_t out = bodyModel.addOperand(&floatType); in TEST_F() 123 bodyModel.addOperation(ANEURALNETWORKS_CAST, {f}, {out}); in TEST_F() 124 bodyModel.identifyInputsAndOutputs({f, b}, {out}); in TEST_F() 125 ASSERT_EQ(bodyModel.finish(), Result::NO_ERROR); in TEST_F() 126 ASSERT_TRUE(bodyModel.isValid()); in TEST_F() 136 uint32_t body = model.addModelOperand(&bodyModel); in TEST_F()
|
D | TestPartitioning.cpp | 836 void addWhileOperation(const PartitioningModel& condModel, const PartitioningModel& bodyModel, in addWhileOperation() argument 840 const uint32_t bodyOperand = addRefModelOperand(bodyModel); in addWhileOperation() 3193 auto bodyModel = createBranchOrBodyModel(dimensionedBody); in createWhileModel() local 3199 mainModel->addWhileOperation(*condModel, *bodyModel, {opnd0, opnd1}, {opnd2}); in createWhileModel() 3207 models.push_back(std::move(bodyModel)); in createWhileModel() 3543 auto bodyModel = std::make_unique<PartitioningModel>(); in TEST_F() local 3544 const uint32_t bodyOpnd0 = bodyModel->addFloatOperand(); in TEST_F() 3545 const uint32_t bodyOpnd1 = bodyModel->addFloatOperand(); in TEST_F() 3546 const uint32_t bodyOpnd2 = bodyModel->addFloatOperand(); in TEST_F() 3547 const uint32_t bodyOpnd3 = bodyModel->addOperation2To1V1_0(1, bodyOpnd0, bodyOpnd1); in TEST_F() [all …]
|
D | TestIntrospectionControl.cpp | 1297 WrapperModel* bodyModel = &extraModels->at(extraModels->size() - 1); in addWhileOperation() local 1299 createReluModel(bodyModel, dynamicRank); in addWhileOperation() 1301 ASSERT_TRUE(bodyModel->isValid()); in addWhileOperation() 1309 mainModel->setOperandValueFromModel(op2, bodyModel); in addWhileOperation()
|
D | TestValidateOperations.cpp | 4659 const ANeuralNetworksModel* bodyModel, bool testMutations) { in testWhile() argument 4668 test.setInputOperandValueFromModel(kBodyOperand, bodyModel); in testWhile() 4686 ANeuralNetworksModel* bodyModel = makeWhileBodyModel(&bodyDataType); in testWhile() local 4687 testWhile(outerDims, condModel, bodyModel, testMutations); in testWhile() 4689 ANeuralNetworksModel_free(bodyModel); in testWhile()
|
/packages/modules/NeuralNetworks/runtime/ |
D | ExecutionPlan.cpp | 2336 const ModelBuilder* bodyModel = getReferencedModel(bodyOperand); in partitionTheWorkInternal() local 2338 uint32_t bodyModelIndex = sourceModels->addModel(bodyModel); in partitionTheWorkInternal() 2357 NN_RETURN_IF_ERROR(bodyModel->partitionTheWorkInternal( in partitionTheWorkInternal() 2380 for (uint32_t i = 0, n = bodyModel->inputCount(); i < n; ++i) { in partitionTheWorkInternal() 2382 bodyModelIndex, bodyModel->getInputOperandIndex(i)); in partitionTheWorkInternal() 2384 for (uint32_t i = 0, n = bodyModel->outputCount(); i < n; ++i) { in partitionTheWorkInternal() 2386 bodyModelIndex, bodyModel->getOutputOperandIndex(i)); in partitionTheWorkInternal() 2439 const ModelBuilder* bodyModel = getReferencedModel(bodyOperand); in getPerformance() local 2442 bodyModel->getPerformance(preference, device); in getPerformance() 2499 const ModelBuilder* bodyModel = getReferencedModel(bodyOperand); in isControlFlowOperationWithOperandOfUnknownSize() local [all …]
|