Lines Matching refs:preparedModel
44 auto preparedModel = resilientPreparedModel.getPreparedModel(); in protect() local
45 auto result = fn(*preparedModel); in protect()
53 auto maybePreparedModel = resilientPreparedModel.recover(preparedModel.get()); in protect()
61 preparedModel = std::move(maybePreparedModel).value(); in protect()
63 return fn(*preparedModel); in protect()
74 auto preparedModel = NN_TRY(makePreparedModel()); in create() local
75 CHECK(preparedModel != nullptr); in create()
77 PrivateConstructorTag{}, std::move(makePreparedModel), std::move(preparedModel)); in create()
82 nn::SharedPreparedModel preparedModel) in ResilientPreparedModel() argument
83 : kMakePreparedModel(std::move(makePreparedModel)), mPreparedModel(std::move(preparedModel)) { in ResilientPreparedModel()
111 &loopTimeoutDuration](const nn::IPreparedModel& preparedModel) { in execute() argument
112 return preparedModel.execute(request, measure, deadline, loopTimeoutDuration); in execute()
125 &timeoutDurationAfterFence](const nn::IPreparedModel& preparedModel) { in executeFenced() argument
126 return preparedModel.executeFenced(request, waitFor, measure, deadline, loopTimeoutDuration, in executeFenced()
138 [preparedModel = std::move(self), request, measure, loopTimeoutDuration] { in createReusableExecution()
139 … return preparedModel->createReusableExecutionInternal(request, measure, loopTimeoutDuration); in createReusableExecution()
151 [preparedModel = std::move(self)]() -> nn::GeneralResult<nn::SharedBurst> { in configureExecutionBurst()
152 return preparedModel->configureExecutionBurst(); in configureExecutionBurst()
167 &loopTimeoutDuration](const nn::IPreparedModel& preparedModel) { in createReusableExecutionInternal() argument
168 return preparedModel.createReusableExecution(request, measure, loopTimeoutDuration); in createReusableExecutionInternal()
185 const auto fn = [](const nn::IPreparedModel& preparedModel) { in configureExecutionBurstInternal() argument
186 return preparedModel.configureExecutionBurst(); in configureExecutionBurstInternal()