Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Nov 1, 2024
1 parent 4b48a38 commit 96b7f1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onnxruntime/test/util/default_providers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ std::unique_ptr<IExecutionProvider> DefaultCoreMLExecutionProvider(bool use_mlpr
if (use_mlprogram) {
coreml_flags |= COREML_FLAG_CREATE_MLPROGRAM;
}

return CoreMLProviderFactoryCreator::Create(coreml_flags)->CreateProvider();
auto option = ProviderOptions();
option["coreml_flags"] = coreml_flags;
return CoreMLProviderFactoryCreator::Create(option)->CreateProvider();
#else
ORT_UNUSED_PARAMETER(use_mlprogram);
return nullptr;
Expand Down

0 comments on commit 96b7f1d

Please sign in to comment.