Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/AM62DX/AM62DX_edgeai_toc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ devices/AM62DX/edgeai/getting_started_gstreamer
devices/AM62DX/edgeai/edgeai_model_workflow
devices/AM62DX/edgeai/model_zoo
devices/AM62DX/edgeai/model_compile_evaluate
devices/AM62DX/edgeai/model_inspect
devices/AM62DX/edgeai/model_inspector
devices/AM62DX/edgeai/integrating_new_model
devices/AM62DX/edgeai/performance
2 changes: 1 addition & 1 deletion source/devices/AM62DX/edgeai/edgeai_model_workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The end-to-end path is the same for a reference model or your own model:
(:ref:`Model Compile and Evaluate <edgeai_compile_evaluate>`).
#. **Evaluate** accuracy or audio-quality metrics on a data set.
#. **Inspect** the compiled subgraphs and per-layer analysis (:ref:`Model
Inspect <edgeai_model_inspect>`).
Inspector <edgeai_model_inspector>`).
#. **Run** on the AM62D target using the compiled artifact
(:ref:`EdgeAI Model Zoo <edgeai_model_zoo>`).
#. **Benchmark** latency and memory (:ref:`Performance <edgeai_performance>`).
Expand Down
2 changes: 1 addition & 1 deletion source/devices/AM62DX/edgeai/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Processor SDK Linux Edge AI Software Developer’s Guide
edgeai_model_workflow
model_zoo
model_compile_evaluate
model_inspect
model_inspector
integrating_new_model
performance

Expand Down
27 changes: 24 additions & 3 deletions source/devices/AM62DX/edgeai/model_compile_evaluate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,27 @@ CLI - ``tidlrunner-cli`` - exposes the stages this section uses:
- Imports the ONNX graph, quantizes and partitions it, and writes the
deployable TIDL/TVM-RT artifacts.
* - ``infer``
- Runs the compiled model on the x86 host (PC emulation) to check output
correctness before deploying to the target.
- Runs the compiled model on the x86 host (PC emulation), or on the AM62D
evaluation module (EVM) itself, to check output correctness before deploying to the target.
* - ``evaluate``
- Runs the compiled model over a data set and reports accuracy or
speech-enhancement metrics.
* - ``inspect``
- One-shot compile + inference + reference comparison that emits an
interactive HTML analysis report (see :ref:`Model Inspect <edgeai_model_inspect>`).
interactive HTML analysis report (see :ref:`Model Inspector <edgeai_model_inspector>`).

All commands are run from the repository root (``edgeai-tidlrunner/``) and take
``--config_path <cfg>`` pointing at the per-model YAML. The same config file is
reused across ``compile``, ``infer``, and ``evaluate``.

.. note::

``compile``, ``infer`` and ``evaluate`` also write or refresh the Model
Inspector report (:file:`work_dirs/.../inspect/modelinspector.html`) at the end
of the run; add ``--no_inspector`` to skip it. Running ``infer`` on the EVM
with ``--debug_level 2`` adds measured per-layer cycle counts to the report.
See :ref:`Model Inspector <edgeai_model_inspector>` for details.

.. _edgeai-am62d-setup:

*****
Expand Down Expand Up @@ -228,3 +236,16 @@ input):
$ tidlrunner-cli evaluate --config_path $CFG

``evaluate`` reports PESQ / STOI / SI-SDR over the VoiceBank-DEMAND-16k test set.

**********
Next steps
**********

To see how a compiled model behaves, read :ref:`Model Inspector
<edgeai_model_inspector>`. The report shows what runs on the C7\ |trade| Neural
Processing Unit (NPU) and what falls back to the Arm core. It also shows how much
accuracy quantization costs, and where the time and memory go.

The page explains the interactive HTML report that ``compile``, ``infer`` and
``evaluate`` generate. It also explains how to produce the full analysis with
``tidlrunner-cli inspect``.
58 changes: 0 additions & 58 deletions source/devices/AM62DX/edgeai/model_inspect.rst

This file was deleted.

Loading
Loading