Skip to content

Commit ff6696f

Browse files
committed
Fix syntax of code-snippets
1 parent 5896216 commit ff6696f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/execution-providers/Xnnpack-ExecutionProvider.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The XNNPACK EP must be explicitly registered when creating the inference session
4141
```C++
4242
Ort::Env env = Ort::Env{ORT_LOGGING_LEVEL_ERROR, "Default"};
4343
Ort::SessionOptions so;
44-
so.AppendExecutionProvider("XNNPACK", {{"intra_op_num_threads", std::to_string(intra_op_num_threads)}});
44+
so.AppendExecutionProvider("XNNPACK", {"intra_op_num_threads", std::to_string(intra_op_num_threads)});
4545
Ort::Session session(env, model_path, so);
4646
```
4747
@@ -56,7 +56,7 @@ To minimize this, we recommend setting the following options:
5656
```
5757
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.
5858
```C++
59-
so.AppendExecutionProvider("XNNPACK", {{"intra_op_num_threads", std::to_string(intra_op_num_threads)}});
59+
so.AppendExecutionProvider("XNNPACK", {"intra_op_num_threads", std::to_string(intra_op_num_threads)});
6060
```
6161
3. Set the ORT intra-op thread-pool size to 1:
6262
```C++

0 commit comments

Comments
 (0)