Lines Matching refs:preparedModel
319 std::shared_ptr<IPreparedModel>* preparedModel = nullptr) { in saveModelToCache() argument
320 if (preparedModel != nullptr) *preparedModel = nullptr; in saveModelToCache()
334 if (preparedModel != nullptr) { in saveModelToCache()
335 *preparedModel = preparedModelCallback->getPreparedModel(); in saveModelToCache()
371 std::shared_ptr<IPreparedModel>* preparedModel, ErrorStatus* status, in prepareModelFromCache() argument
401 *preparedModel = nullptr; in prepareModelFromCache()
409 *preparedModel = preparedModelCallback->getPreparedModel(); in prepareModelFromCache()
420 std::shared_ptr<IPreparedModel> preparedModel; in verifyModelPreparationBehaviour() local
425 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
430 ASSERT_EQ(preparedModel, nullptr); in verifyModelPreparationBehaviour()
435 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
441 ASSERT_NE(preparedModel, nullptr); in verifyModelPreparationBehaviour()
442 EvaluatePreparedModel(kDevice, preparedModel, testModel, in verifyModelPreparationBehaviour()
487 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
499 preparedModel = nullptr; in TEST_P()
504 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
508 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
511 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
515 ASSERT_NE(preparedModel, nullptr); in TEST_P()
520 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
528 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
551 preparedModel = nullptr; in TEST_P()
565 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
569 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
572 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
576 ASSERT_NE(preparedModel, nullptr); in TEST_P()
581 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
598 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
599 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
600 ASSERT_NE(preparedModel, nullptr); in TEST_P()
602 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
616 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
617 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
618 ASSERT_NE(preparedModel, nullptr); in TEST_P()
620 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
633 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
634 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
635 ASSERT_NE(preparedModel, nullptr); in TEST_P()
637 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
651 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
652 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
653 ASSERT_NE(preparedModel, nullptr); in TEST_P()
655 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
737 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
738 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
739 ASSERT_NE(preparedModel, nullptr); in TEST_P()
741 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
753 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
754 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
755 ASSERT_NE(preparedModel, nullptr); in TEST_P()
757 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
872 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
877 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
883 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
885 ASSERT_NE(preparedModel, nullptr); in TEST_P()
886 EvaluatePreparedModel(kDevice, preparedModel, testModelAdd, in TEST_P()
931 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
939 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
946 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
948 ASSERT_NE(preparedModel, nullptr); in TEST_P()
949 EvaluatePreparedModel(kDevice, preparedModel, testModelAdd, in TEST_P()
995 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in TEST_P() local
1000 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1002 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
1100 std::shared_ptr<IPreparedModel> preparedModel = nullptr; in testCorruptedCache() local
1105 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in testCorruptedCache()
1110 ASSERT_EQ(preparedModel, nullptr); in testCorruptedCache()
1113 ASSERT_EQ(preparedModel == nullptr, status != ErrorStatus::NONE); in testCorruptedCache()