Lines Matching refs:testModel
70 void computeWithDeviceMemories(const Compilation& compilation, const TestModel& testModel,
75 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel);
76 void executeOnce(const Model& model, const TestModel& testModel);
77 void executeMultithreadedOwnCompilation(const Model& model, const TestModel& testModel);
78 void executeMultithreadedSharedCompilation(const Model& model, const TestModel& testModel);
80 void execute(const TestModel& testModel);
244 void computeWithPtrs(const TestModel& testModel, Execution* execution, in computeWithPtrs() argument
249 createRequest(testModel, execution, outputs); in computeWithPtrs()
284 const TestModel& testModel, Execution* execution, in computeWithDeviceMemories() argument
296 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in computeWithDeviceMemories()
298 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in computeWithDeviceMemories()
319 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
331 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
333 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in computeWithDeviceMemories()
347 const TestModel& testModel) { in executeWithCompilation() argument
355 computeWithDeviceMemories(compilation, testModel, &execution, mComputeMode, &result, in executeWithCompilation()
358 computeWithPtrs(testModel, &execution, mComputeMode, &result, &outputs); in executeWithCompilation()
375 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in executeWithCompilation()
377 const auto& output = testModel.main.operands[testModel.main.outputIndexes[i]]; in executeWithCompilation()
384 checkResults(testModel, outputs); in executeWithCompilation()
388 void GeneratedTests::executeOnce(const Model& model, const TestModel& testModel) { in executeOnce() argument
411 executeWithCompilation(compilation.value(), testModel); in executeOnce()
421 const TestModel& testModel) { in executeMultithreadedOwnCompilation() argument
427 threads.push_back(std::thread([&]() { executeOnce(model, testModel); })); in executeMultithreadedOwnCompilation()
433 const TestModel& testModel) { in executeMultithreadedSharedCompilation() argument
461 std::thread([&]() { executeWithCompilation(compilation.value(), testModel); })); in executeMultithreadedSharedCompilation()
473 void GeneratedTests::execute(const TestModel& testModel) { in execute() argument
476 createModel(mNnApi.get(), testModel, mTestDynamicOutputShape, &model); in execute()
477 if (testModel.expectFailure && !model.isValid()) { in execute()
482 auto executeInternal = [&testModel, &model, this]() { in execute()
487 executeOnce(model, testModel); in execute()
489 executeMultithreadedOwnCompilation(model, testModel); in execute()
490 executeMultithreadedSharedCompilation(model, testModel); in execute()
555 execute(testModel); in TEST_P()
561 execute(testModel); in TEST_P()
565 execute(testModel); in TEST_P()
570 execute(testModel); in TEST_P()
574 execute(testModel); in TEST_P()
578 execute(convertQuant8AsymmOperandsToSigned(testModel)); in TEST_P()
582 execute(testModel); in TEST_P()
587 execute(testModel); in TEST_P()
591 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anon8752d1880a02() argument
593 INSTANTIATE_GENERATED_TEST(DynamicOutputShapeTest, [](const TestModel& testModel) { in __anon8752d1880b02() argument
594 return !testModel.expectFailure && !testModel.hasScalarOutputs(); in __anon8752d1880b02()
597 INSTANTIATE_GENERATED_TEST(GeneratedValidationTests, [](const TestModel& testModel) { in __anon8752d1880c02() argument
598 return testModel.expectFailure && !testModel.isInfiniteLoopTimeoutTest(); in __anon8752d1880c02()
601 INSTANTIATE_GENERATED_TEST(QuantizationCouplingTest, [](const TestModel& testModel) { in __anon8752d1880d02() argument
602 return !testModel.expectFailure && testModel.main.operations.size() == 1 && in __anon8752d1880d02()
603 testModel.referenced.size() == 0 && testModel.hasQuant8CoupledOperands(); in __anon8752d1880d02()
606 INSTANTIATE_GENERATED_TEST(DeviceMemoryTest, [](const TestModel& testModel) { in __anon8752d1880e02() argument
607 return !testModel.expectFailure && in __anon8752d1880e02()
608 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon8752d1880e02()
609 [&testModel](uint32_t index) { in __anon8752d1880e02()
610 return testModel.main.operands[index].data.size() > 0; in __anon8752d1880e02()
614 INSTANTIATE_GENERATED_TEST(FencedComputeTest, [](const TestModel& testModel) { in __anon8752d1881002() argument
615 return !testModel.expectFailure && in __anon8752d1881002()
616 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon8752d1881002()
617 [&testModel](uint32_t index) { in __anon8752d1881002()
618 return testModel.main.operands[index].data.size() > 0; in __anon8752d1881002()