Skip to content

Commit 24fdac3

Browse files
author
quic_calvnguy
committed
Fix typos
1 parent 5f28b33 commit 24fdac3

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/execution-providers/QNN-ExecutionProvider.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,15 @@ session = ort.InferenceSession(
528528
)
529529
```
530530

531-
Upon successful session creation, three files will be genearted:
531+
Upon successful session creation, three files will be generated:
532532
- model_ctx.onnx
533533
- model_qnn.bin
534534
- QNNExecutionProvider_QNN__<number>_schematic.bin
535535

536536
model_ctx.onnx is an onnx model with a node that points to the model_qnn.bin context binary, which will be used by the HTP backend for execution. The _schematic.bin file will be used by qnn-profile-viewer to generate QHAS data.
537537

538538
### Generating QHAS Data
539-
Previously for general profiling data, the a session was created and executed with ""model.onnx". However, now there is a new _ctx.onnx model that utilizes a newly generated context binary. As such, a new inference session must be created with the new _ctx.onnx model:
539+
Previously for general profiling data, a session was created and executed with "model.onnx". However, now there is a new _ctx.onnx model that utilizes a newly generated context binary. As such, a new inference session must be created with the new _ctx.onnx model:
540540
```python
541541
# Continuing from Optrace Setup:
542542

@@ -553,17 +553,19 @@ input0 = np.ones((1,2,3,4), dtype=np.float32)
553553
result = optrace_session.run(None, {"input": input0})
554554
```
555555

556-
As before under "General Usage", a .csv file (optrace.csv) and a _qnn.log file (optrace_qnn.log) are generated. qnn-profile-viewer will be used again, but with different parameters:
556+
As before under "General Usage", a .csv file (optrace.csv) and a _qnn.log file (optrace_qnn.log) are generated.
557+
558+
qnn-profile-viewer can be used with different parameters and files to parse all the data written to optrace_qnn.log:
557559
```console
558560
> qnn-profile-viewer.exe --config .\config.json --reader .\QnnHtpOptraceProfilingReader.dll --input_log .\optrace_qnn.log --schematic .\QNNExecutionProvider_QNN_12345_schematic.bin --output optrace.json
559561
```
560562

561-
Three new files are used:
562-
- config.json: Please refer to the "Post Process (Chrometrace Generation)" section [on this page](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-10/htp_backend.html#qnn-htp-optrace-profiling).
563-
- QnnHtpOptraceProfilingReader.dll: Provided as part of the QAIRT SDK. The corresponding file for Linux is libQnnHtpOptraceProfilingReader.so.
564-
- QNNExecutionProvider_QNN_12345_schematic.bin: The name will vary. This file must be the same one generated alongside the context binary under "Optrace Setup".
565-
566-
Additionally, the output file is now a .json file contaning chrometrace data. This .json file can be opened with either [Perfetto Trace Vizualizer](https://ui.perfetto.dev/) or with chrome://tracing.
563+
Pleaste note:
564+
- Three new files are used:
565+
- config.json: Please refer to the "Post Process (Chrometrace Generation)" section [on this page](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-10/htp_backend.html#qnn-htp-optrace-profiling).
566+
- QnnHtpOptraceProfilingReader.dll: Provided as part of the QAIRT SDK. The corresponding file for Linux is libQnnHtpOptraceProfilingReader.so.
567+
- QNNExecutionProvider_QNN_12345_schematic.bin: The name will vary. This file must be the same one generated alongside the context binary under "Optrace Setup".
568+
- The output file is now a .json file containing chrometrace data. This .json file can be opened with either [Perfetto Trace Vizualizer](https://ui.perfetto.dev/) or with chrome://tracing.
567569

568570
After running qnn-profile-viewer, you should see a handful of .json files generated with the same prefix as the --output filename parameter. You should also see an .html file generated as well. This .html file can be opened by Chrome to view the chrometrace in a more user-friendly GUI.
569571

0 commit comments

Comments
 (0)