Lines Matching refs:model

306     bool isModelFullySupported(const Model& model) {  in isModelFullySupported()  argument
308 const auto supportedCall = kDevice->getSupportedOperations(model, &supportedOps); in isModelFullySupported()
310 EXPECT_EQ(supportedOps.size(), model.main.operations.size()); in isModelFullySupported()
311 if (!supportedCall.isOk() || supportedOps.size() != model.main.operations.size()) { in isModelFullySupported()
318 void saveModelToCache(const Model& model, in saveModelToCache() argument
329 model, ExecutionPreference::FAST_SINGLE_ANSWER, kDefaultPriority, kNoDeadline, in saveModelToCache()
353 bool checkEarlyTermination(const Model& model) { in checkEarlyTermination() argument
354 if (!isModelFullySupported(model)) { in checkEarlyTermination()
421 const Model* model, const TestModel& testModel) { in verifyModelPreparationBehaviour() argument
438 /*fallbackModel=*/model); in verifyModelPreparationBehaviour()
487 const Model model = createModel(testModel); in TEST_P() local
488 if (checkEarlyTermination(model)) return; in TEST_P()
496 saveModelToCache(model, modelCache, dataCache); in TEST_P()
507 /*fallbackModel=*/&model); in TEST_P()
528 const Model model = createModel(testModel); in TEST_P() local
529 if (checkEarlyTermination(model)) return; in TEST_P()
548 saveModelToCache(model, modelCache, dataCache); in TEST_P()
568 /*fallbackModel=*/&model); in TEST_P()
589 const Model model = createModel(testModel); in TEST_P() local
590 if (checkEarlyTermination(model)) return; in TEST_P()
601 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
606 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
619 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
624 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
636 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
641 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
654 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
659 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
666 const Model model = createModel(testModel); in TEST_P() local
667 if (checkEarlyTermination(model)) return; in TEST_P()
674 saveModelToCache(model, modelCache, dataCache); in TEST_P()
685 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
697 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
708 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
720 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
727 const Model model = createModel(testModel); in TEST_P() local
728 if (checkEarlyTermination(model)) return; in TEST_P()
740 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
745 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
756 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
761 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
768 const Model model = createModel(testModel); in TEST_P() local
769 if (checkEarlyTermination(model)) return; in TEST_P()
778 saveModelToCache(model, modelCache, dataCache); in TEST_P()
789 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
799 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
1085 const Model model = createModel(testModel); in testCorruptedCache() local
1086 if (checkEarlyTermination(model)) return; in testCorruptedCache()
1093 saveModelToCache(model, modelCache, dataCache); in testCorruptedCache()