Lines Matching refs:testModel
76 Model createModel(const TestModel& testModel) { in createModel() argument
78 CHECK_EQ(testModel.referenced.size(), 0u); // Not supported in 1.1. in createModel()
79 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel()
81 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
82 const auto& op = testModel.main.operands[i]; in createModel()
114 hidl_vec<Operation> operations(testModel.main.operations.size()); in createModel()
115 std::transform(testModel.main.operations.begin(), testModel.main.operations.end(), in createModel()
124 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
125 const auto& op = testModel.main.operands[i]; in createModel()
146 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
147 const auto& op = testModel.main.operands[i]; in createModel()
158 .inputIndexes = testModel.main.inputIndexes, in createModel()
159 .outputIndexes = testModel.main.outputIndexes, in createModel()
162 .relaxComputationFloat32toFloat16 = testModel.isRelaxed}; in createModel()
165 static bool isOutputSizeGreaterThanOne(const TestModel& testModel, uint32_t index) { in isOutputSizeGreaterThanOne() argument
166 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne()
212 void EvaluatePreparedModel(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in EvaluatePreparedModel() argument
216 !isOutputSizeGreaterThanOne(testModel, 0)) { in EvaluatePreparedModel()
221 Request request = context.createRequest(testModel, testConfig.memoryType); in EvaluatePreparedModel()
307 outputShapes.size() == testModel.main.outputIndexes.size()); in EvaluatePreparedModel()
313 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel()
317 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel()
325 const auto& expect = testModel.main.operands[testModel.main.outputIndexes[i]].dimensions; in EvaluatePreparedModel()
334 checkResults(testModel, outputs); in EvaluatePreparedModel()
337 void EvaluatePreparedModel(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in EvaluatePreparedModel() argument
364 EvaluatePreparedModel(preparedModel, testModel, testConfig); in EvaluatePreparedModel()
371 void Execute(const sp<IDevice>& device, const TestModel& testModel, bool testDynamicOutputShape) { in Execute() argument
372 Model model = createModel(testModel); in Execute()
381 EvaluatePreparedModel(preparedModel, testModel, testDynamicOutputShape); in Execute()
419 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anone55059980402() argument
422 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anone55059980502() argument