• Home
  • Raw
  • Download

Lines Matching refs:testModel

81             const Compilation& compilation, const TestModel& testModel, Execution* execution,
85 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel);
86 void executeOnce(const Model& model, const TestModel& testModel);
87 void executeMultithreadedOwnCompilation(const Model& model, const TestModel& testModel);
88 void executeMultithreadedSharedCompilation(const Model& model, const TestModel& testModel);
90 void execute(const TestModel& testModel);
253 void computeWithPtrs(const TestModel& testModel, Execution* execution, in computeWithPtrs() argument
258 createRequest(testModel, execution, outputs); in computeWithPtrs()
293 const Compilation& compilation, const TestModel& testModel, Execution* execution, in computeWithDeviceMemories() argument
304 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in computeWithDeviceMemories()
306 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in computeWithDeviceMemories()
329 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
343 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
345 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in computeWithDeviceMemories()
361 const TestModel& testModel) { in executeWithCompilation() argument
369 if (computeWithDeviceMemories(compilation, testModel, &execution, mComputeMode, &result, in executeWithCompilation()
375 computeWithPtrs(testModel, &execution, mComputeMode, &result, &outputs); in executeWithCompilation()
392 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in executeWithCompilation()
394 const auto& output = testModel.main.operands[testModel.main.outputIndexes[i]]; in executeWithCompilation()
401 checkResults(testModel, outputs); in executeWithCompilation()
405 void GeneratedTests::executeOnce(const Model& model, const TestModel& testModel) { in executeOnce() argument
428 executeWithCompilation(compilation.value(), testModel); in executeOnce()
438 const TestModel& testModel) { in executeMultithreadedOwnCompilation() argument
444 threads.push_back(std::thread([&]() { executeOnce(model, testModel); })); in executeMultithreadedOwnCompilation()
450 const TestModel& testModel) { in executeMultithreadedSharedCompilation() argument
478 std::thread([&]() { executeWithCompilation(compilation.value(), testModel); })); in executeMultithreadedSharedCompilation()
490 void GeneratedTests::execute(const TestModel& testModel) { in execute() argument
493 createModel(mNnApi.get(), testModel, mTestDynamicOutputShape, &model); in execute()
494 if (testModel.expectFailure && !model.isValid()) { in execute()
499 auto executeInternal = [&testModel, &model, this]() { in execute()
504 executeOnce(model, testModel); in execute()
506 executeMultithreadedOwnCompilation(model, testModel); in execute()
507 executeMultithreadedSharedCompilation(model, testModel); in execute()
577 execute(testModel); in TEST_P()
583 execute(testModel); in TEST_P()
587 execute(testModel); in TEST_P()
592 execute(testModel); in TEST_P()
596 execute(testModel); in TEST_P()
600 execute(convertQuant8AsymmOperandsToSigned(testModel)); in TEST_P()
604 execute(testModel); in TEST_P()
609 execute(testModel); in TEST_P()
613 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anon0b3177a10a02() argument
615 INSTANTIATE_GENERATED_TEST(DynamicOutputShapeTest, [](const TestModel& testModel) { in __anon0b3177a10b02() argument
616 return !testModel.expectFailure && !testModel.hasScalarOutputs(); in __anon0b3177a10b02()
619 INSTANTIATE_GENERATED_TEST(GeneratedValidationTests, [](const TestModel& testModel) { in __anon0b3177a10c02() argument
620 return testModel.expectFailure && !testModel.isInfiniteLoopTimeoutTest(); in __anon0b3177a10c02()
623 INSTANTIATE_GENERATED_TEST(QuantizationCouplingTest, [](const TestModel& testModel) { in __anon0b3177a10d02() argument
624 return !testModel.expectFailure && testModel.main.operations.size() == 1 && in __anon0b3177a10d02()
625 testModel.referenced.size() == 0 && testModel.hasQuant8CoupledOperands(); in __anon0b3177a10d02()
628 INSTANTIATE_GENERATED_TEST(DeviceMemoryTest, [](const TestModel& testModel) { in __anon0b3177a10e02() argument
629 return !testModel.expectFailure && in __anon0b3177a10e02()
630 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon0b3177a10e02()
631 [&testModel](uint32_t index) { in __anon0b3177a10e02()
632 return testModel.main.operands[index].data.size() > 0; in __anon0b3177a10e02()
636 INSTANTIATE_GENERATED_TEST(FencedComputeTest, [](const TestModel& testModel) { in __anon0b3177a11002() argument
637 return !testModel.expectFailure && in __anon0b3177a11002()
638 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anon0b3177a11002()
639 [&testModel](uint32_t index) { in __anon0b3177a11002()
640 return testModel.main.operands[index].data.size() > 0; in __anon0b3177a11002()