From 58962164bfeda1255517562964592615d8dbe7d3 Mon Sep 17 00:00:00 2001 From: natke Date: Sun, 18 Feb 2024 04:56:47 -0800 Subject: [PATCH 1/2] Make a small edit to trigger a rebuild --- docs/execution-providers/Xnnpack-ExecutionProvider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/execution-providers/Xnnpack-ExecutionProvider.md b/docs/execution-providers/Xnnpack-ExecutionProvider.md index 1396718fceaf2..1b2180cb00379 100644 --- a/docs/execution-providers/Xnnpack-ExecutionProvider.md +++ b/docs/execution-providers/Xnnpack-ExecutionProvider.md @@ -28,7 +28,7 @@ See [here](../install/index.md#install-on-ios) for installation instructions. Please see the [Build page](../build/eps.md#xnnpack) for instructions on building a package that includes the XNNPACK EP. -Support build for Android/iOS/Windows/Linux +You can build ONNX Runtime with the XNNPACK EP for Android, iOS, Windows, and Linux. ## Usage From ff6696f07c41b8b41868ac539f7f335d874fd533 Mon Sep 17 00:00:00 2001 From: natke Date: Sun, 18 Feb 2024 05:09:37 -0800 Subject: [PATCH 2/2] Fix syntax of code-snippets --- docs/execution-providers/Xnnpack-ExecutionProvider.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/execution-providers/Xnnpack-ExecutionProvider.md b/docs/execution-providers/Xnnpack-ExecutionProvider.md index 1b2180cb00379..c1900aa841860 100644 --- a/docs/execution-providers/Xnnpack-ExecutionProvider.md +++ b/docs/execution-providers/Xnnpack-ExecutionProvider.md @@ -41,7 +41,7 @@ The XNNPACK EP must be explicitly registered when creating the inference session ```C++ Ort::Env env = Ort::Env{ORT_LOGGING_LEVEL_ERROR, "Default"}; Ort::SessionOptions so; -so.AppendExecutionProvider("XNNPACK", {{"intra_op_num_threads", std::to_string(intra_op_num_threads)}}); +so.AppendExecutionProvider("XNNPACK", {"intra_op_num_threads", std::to_string(intra_op_num_threads)}); Ort::Session session(env, model_path, so); ``` @@ -56,7 +56,7 @@ To minimize this, we recommend setting the following options: ``` 2. Set the XNNPACK intra-op thread-pool size when registering the XNNPACK EP. The suggested value would be the number of physical cores on the device. ```C++ - so.AppendExecutionProvider("XNNPACK", {{"intra_op_num_threads", std::to_string(intra_op_num_threads)}}); + so.AppendExecutionProvider("XNNPACK", {"intra_op_num_threads", std::to_string(intra_op_num_threads)}); ``` 3. Set the ORT intra-op thread-pool size to 1: ```C++