Update onnxruntime/core/providers/nnapi/nnapi_builtin/model.cc

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
This commit is contained in:
JiCheng 2023-03-09 13:04:07 +08:00 committed by JiCheng
parent d490908836
commit d236085845

View file

@ -101,7 +101,7 @@ Status Model::PrepareForExecution(std::unique_ptr<Execution>& execution) {
RETURN_STATUS_ON_ERROR(
nnapi_.ANeuralNetworksExecution_create(compilation_, &nnapi_execution));
execution.reset(new Execution(*nnapi_execution /*, shaper_*/, nnapi_));
execution = std::make_unique<Execution>(*nnapi_execution /*, shaper_*/, nnapi_);
return Status::OK();
}