Lines Matching refs:executor

67 sp<PreparedModel> adaptPreparedModel(nn::SharedPreparedModel preparedModel, Executor executor,  in adaptPreparedModel()  argument
72 return sp<PreparedModel>::make(std::move(preparedModel), std::move(executor), userId); in adaptPreparedModel()
111 void notify(CallbackType* callback, PrepareModelResult result, Executor executor, uid_t userId) { in notify() argument
119 adaptPreparedModel(std::move(preparedModel), std::move(executor), userId); in notify()
131 nn::GeneralResult<void> prepareModel(const nn::SharedDevice& device, const Executor& executor, in prepareModel() argument
141 Task task = [device, nnModel = std::move(nnModel), userId, executor, callback] { in prepareModel()
144 notify(callback.get(), std::move(result), executor, userId); in prepareModel()
146 executor(std::move(task), userId, {}); in prepareModel()
151 nn::GeneralResult<void> prepareModel_1_1(const nn::SharedDevice& device, const Executor& executor, in prepareModel_1_1() argument
163 Task task = [device, nnModel = std::move(nnModel), nnPreference, userId, executor, callback] { in prepareModel_1_1()
166 notify(callback.get(), std::move(result), executor, userId); in prepareModel_1_1()
168 executor(std::move(task), userId, {}); in prepareModel_1_1()
173 nn::GeneralResult<void> prepareModel_1_2(const nn::SharedDevice& device, const Executor& executor, in prepareModel_1_2() argument
193 nnToken, userId, executor, callback] { in prepareModel_1_2()
196 notify(callback.get(), std::move(result), executor, userId); in prepareModel_1_2()
198 executor(std::move(task), userId, {}); in prepareModel_1_2()
204 const nn::SharedDevice& device, const Executor& executor, const V1_3::Model& model, in prepareModel_1_3() argument
224 nnToken, userId, executor, callback] { in prepareModel_1_3()
227 notify(callback.get(), std::move(result), executor, userId); in prepareModel_1_3()
229 executor(std::move(task), userId, nnDeadline); in prepareModel_1_3()
235 const Executor& executor, in prepareModelFromCache() argument
250 nnDataCache = std::move(nnDataCache), nnToken, userId, executor, callback] { in prepareModelFromCache()
252 notify(callback.get(), std::move(result), executor, userId); in prepareModelFromCache()
254 executor(std::move(task), userId, {}); in prepareModelFromCache()
260 const nn::SharedDevice& device, const Executor& executor, in prepareModelFromCache_1_3() argument
275 nnDataCache = std::move(nnDataCache), nnToken, userId, executor, callback] { in prepareModelFromCache_1_3()
277 notify(callback.get(), std::move(result), executor, userId); in prepareModelFromCache_1_3()
279 executor(std::move(task), userId, nnDeadline); in prepareModelFromCache_1_3()
327 Device::Device(nn::SharedDevice device, Executor executor) in Device() argument
328 : kDevice(std::move(device)), kExecutor(std::move(executor)) { in Device()