Lines Matching refs:testModel

68     void executeWithCompilation(const Compilation& compilation, const TestModel& testModel);
69 void executeOnce(const Model& model, const TestModel& testModel);
70 void executeMultithreadedOwnCompilation(const Model& model, const TestModel& testModel);
71 void executeMultithreadedSharedCompilation(const Model& model, const TestModel& testModel);
73 void execute(const TestModel& testModel);
141 static void computeWithPtrs(const TestModel& testModel, Execution* execution, Result* result, in computeWithPtrs() argument
145 createRequest(testModel, execution, outputs); in computeWithPtrs()
177 static void computeWithDeviceMemories(const Compilation& compilation, const TestModel& testModel, in computeWithDeviceMemories() argument
189 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in computeWithDeviceMemories()
191 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in computeWithDeviceMemories()
212 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
224 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
226 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in computeWithDeviceMemories()
240 const TestModel& testModel) { in executeWithCompilation() argument
248 computeWithDeviceMemories(compilation, testModel, &execution, &result, &outputs); in executeWithCompilation()
250 computeWithPtrs(testModel, &execution, &result, &outputs); in executeWithCompilation()
267 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in executeWithCompilation()
268 const auto& output = testModel.main.operands[testModel.main.outputIndexes[i]]; in executeWithCompilation()
275 checkResults(testModel, outputs); in executeWithCompilation()
279 void GeneratedTests::executeOnce(const Model& model, const TestModel& testModel) { in executeOnce() argument
284 executeWithCompilation(compilation.value(), testModel); in executeOnce()
288 const TestModel& testModel) { in executeMultithreadedOwnCompilation() argument
293 threads.push_back(std::thread([&]() { executeOnce(model, testModel); })); in executeMultithreadedOwnCompilation()
299 const TestModel& testModel) { in executeMultithreadedSharedCompilation() argument
308 std::thread([&]() { executeWithCompilation(compilation.value(), testModel); })); in executeMultithreadedSharedCompilation()
314 void GeneratedTests::execute(const TestModel& testModel) { in execute() argument
317 createModel(testModel, mTestDynamicOutputShape, &model); in execute()
318 if (testModel.expectFailure && !model.isValid()) { in execute()
323 auto executeInternal = [&testModel, &model, this]() { in execute()
326 executeOnce(model, testModel); in execute()
328 executeMultithreadedOwnCompilation(model, testModel); in execute()
329 executeMultithreadedSharedCompilation(model, testModel); in execute()
391 execute(testModel); in TEST_P()
397 execute(testModel); in TEST_P()
403 execute(testModel); in TEST_P()
408 execute(testModel); in TEST_P()
413 execute(testModel); in TEST_P()
417 execute(testModel); in TEST_P()
421 execute(convertQuant8AsymmOperandsToSigned(testModel)); in TEST_P()
425 execute(testModel); in TEST_P()
430 execute(testModel); in TEST_P()
435 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anon560c7fe40702() argument
437 INSTANTIATE_GENERATED_TEST(DynamicOutputShapeTest, [](const TestModel& testModel) { in __anon560c7fe40802() argument
438 return !testModel.expectFailure && !testModel.hasScalarOutputs(); in __anon560c7fe40802()
441 INSTANTIATE_GENERATED_TEST(GeneratedValidationTests, [](const TestModel& testModel) { in __anon560c7fe40902() argument
442 return testModel.expectFailure && !testModel.isInfiniteLoopTimeoutTest(); in __anon560c7fe40902()
445 INSTANTIATE_GENERATED_TEST(QuantizationCouplingTest, [](const TestModel& testModel) { in __anon560c7fe40a02() argument
446 return !testModel.expectFailure && testModel.main.operations.size() == 1 && in __anon560c7fe40a02()
447 testModel.referenced.size() == 0 && testModel.hasQuant8CoupledOperands(); in __anon560c7fe40a02()
450 INSTANTIATE_GENERATED_TEST(DeviceMemoryTest, [](const TestModel& testModel) { in __anon560c7fe40b02() argument
451 return !testModel.expectFailure && in __anon560c7fe40b02()
452 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon560c7fe40b02()
453 [&testModel](uint32_t index) { in __anon560c7fe40b02()
454 return testModel.main.operands[index].data.size() > 0; in __anon560c7fe40b02()
458 INSTANTIATE_GENERATED_TEST(FencedComputeTest, [](const TestModel& testModel) { in __anon560c7fe40d02() argument
459 return !testModel.expectFailure && in __anon560c7fe40d02()
460 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon560c7fe40d02()
461 [&testModel](uint32_t index) { in __anon560c7fe40d02()
462 return testModel.main.operands[index].data.size() > 0; in __anon560c7fe40d02()