Skip to content

Commit c2d9787

Browse files
authored
coreml: fix wrong C++ code in documentation (#24403)
### Description <!-- Describe your changes. --> Change C++ code so that it is valid ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
1 parent c33c5aa commit c2d9787

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/execution-providers/CoreML-ExecutionProvider.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ Ort::Env env = Ort::Env{ORT_LOGGING_LEVEL_ERROR, "Default"};
7272
Ort::SessionOptions so;
7373
std::string model_path = "/a/b/c/model.onnx";
7474
std::unordered_map<std::string, std::string> provider_options;
75-
provider_options["ModelFormat"] = std::to_string("MLProgram");
76-
provider_options["MLComputeUnits"] = std::to_string("ALL");
77-
provider_options["RequireStaticInputShapes"] = std::to_string("0");
78-
provider_options["EnableOnSubgraphs"] = std::to_string("0");
75+
provider_options["ModelFormat"] = "MLProgram";
76+
provider_options["MLComputeUnits"] = "ALL";
77+
provider_options["RequireStaticInputShapes"] = "0";
78+
provider_options["EnableOnSubgraphs"] = "0";
7979
so.AppendExecutionProvider("CoreML", provider_options);
8080
Ort::Session session(env, model_path, so);
8181
```

0 commit comments

Comments
 (0)