• Home
  • Raw
  • Download

Lines Matching refs:testModel

75     void computeWithDeviceMemories(const Compilation& compilation, const TestModel& testModel,
80 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel);
81 void executeOnce(const Model& model, const TestModel& testModel);
82 void executeMultithreadedOwnCompilation(const Model& model, const TestModel& testModel);
83 void executeMultithreadedSharedCompilation(const Model& model, const TestModel& testModel);
85 void execute(const TestModel& testModel);
248 void computeWithPtrs(const TestModel& testModel, Execution* execution, in computeWithPtrs() argument
253 createRequest(testModel, execution, outputs); in computeWithPtrs()
288 const TestModel& testModel, Execution* execution, in computeWithDeviceMemories() argument
300 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in computeWithDeviceMemories()
302 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in computeWithDeviceMemories()
323 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
335 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in computeWithDeviceMemories()
337 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in computeWithDeviceMemories()
352 const TestModel& testModel) { in executeWithCompilation() argument
360 computeWithDeviceMemories(compilation, testModel, &execution, mComputeMode, &result, in executeWithCompilation()
363 computeWithPtrs(testModel, &execution, mComputeMode, &result, &outputs); in executeWithCompilation()
380 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in executeWithCompilation()
382 const auto& output = testModel.main.operands[testModel.main.outputIndexes[i]]; in executeWithCompilation()
389 checkResults(testModel, outputs); in executeWithCompilation()
393 void GeneratedTests::executeOnce(const Model& model, const TestModel& testModel) { in executeOnce() argument
416 executeWithCompilation(compilation.value(), testModel); in executeOnce()
426 const TestModel& testModel) { in executeMultithreadedOwnCompilation() argument
432 threads.push_back(std::thread([&]() { executeOnce(model, testModel); })); in executeMultithreadedOwnCompilation()
438 const TestModel& testModel) { in executeMultithreadedSharedCompilation() argument
466 std::thread([&]() { executeWithCompilation(compilation.value(), testModel); })); in executeMultithreadedSharedCompilation()
478 void GeneratedTests::execute(const TestModel& testModel) { in execute() argument
481 createModel(mNnApi.get(), testModel, mTestDynamicOutputShape, &model); in execute()
482 if (testModel.expectFailure && !model.isValid()) { in execute()
487 auto executeInternal = [&testModel, &model, this]() { in execute()
492 executeOnce(model, testModel); in execute()
494 executeMultithreadedOwnCompilation(model, testModel); in execute()
495 executeMultithreadedSharedCompilation(model, testModel); in execute()
565 execute(testModel); in TEST_P()
571 execute(testModel); in TEST_P()
575 execute(testModel); in TEST_P()
580 execute(testModel); in TEST_P()
584 execute(testModel); in TEST_P()
588 execute(convertQuant8AsymmOperandsToSigned(testModel)); in TEST_P()
592 execute(testModel); in TEST_P()
597 execute(testModel); in TEST_P()
601 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anonae77eac80a02() argument
603 INSTANTIATE_GENERATED_TEST(DynamicOutputShapeTest, [](const TestModel& testModel) { in __anonae77eac80b02() argument
604 return !testModel.expectFailure && !testModel.hasScalarOutputs(); in __anonae77eac80b02()
607 INSTANTIATE_GENERATED_TEST(GeneratedValidationTests, [](const TestModel& testModel) { in __anonae77eac80c02() argument
608 return testModel.expectFailure && !testModel.isInfiniteLoopTimeoutTest(); in __anonae77eac80c02()
611 INSTANTIATE_GENERATED_TEST(QuantizationCouplingTest, [](const TestModel& testModel) { in __anonae77eac80d02() argument
612 return !testModel.expectFailure && testModel.main.operations.size() == 1 && in __anonae77eac80d02()
613 testModel.referenced.size() == 0 && testModel.hasQuant8CoupledOperands(); in __anonae77eac80d02()
616 INSTANTIATE_GENERATED_TEST(DeviceMemoryTest, [](const TestModel& testModel) { in __anonae77eac80e02() argument
617 return !testModel.expectFailure && in __anonae77eac80e02()
618 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anonae77eac80e02()
619 [&testModel](uint32_t index) { in __anonae77eac80e02()
620 return testModel.main.operands[index].data.size() > 0; in __anonae77eac80e02()
624 INSTANTIATE_GENERATED_TEST(FencedComputeTest, [](const TestModel& testModel) { in __anonae77eac81002() argument
625 return !testModel.expectFailure && in __anonae77eac81002()
626 std::all_of(testModel.main.outputIndexes.begin(), testModel.main.outputIndexes.end(), in __anonae77eac81002()
627 [&testModel](uint32_t index) { in __anonae77eac81002()
628 return testModel.main.operands[index].data.size() > 0; in __anonae77eac81002()