You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backends/nxp/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,4 +62,4 @@ If you have problems or questions or have suggestions for ways to make
62
62
implementation and testing better, please reach out to the NXP representative for the SoC you are interested in using,
63
63
or your distribution partner contact.
64
64
65
-
Or raise the issue here on ExecuTorch GitHub, label it with `module: nxp` and our ML team will address it on a priority-basis.
65
+
Or raise the issue here on ExecuTorch [Github](https://github.com/pytorch/executorch/issues/new), label it with `module: nxp` and our ML team will address it on a priority-basis.
Copy file name to clipboardExpand all lines: docs/source/backends/nxp/nxp-partitioner.rst
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,12 @@ It has the following arguments:
9
9
* `compile_spec` - list of key-value pairs defining compilation,
10
10
* `neutron_target_spec` - NeutronTargetSpec instance, initialized by SoC id, e.g. "imxrt700",
11
11
* `custom_delegation_options` - custom options for specifying node delegation,
12
-
* `preserve_ops` - list of aten operators to not be decomposed by ExecuTorch.
12
+
* `post_quantization_state_dict` - state-dict of the model right after quantization. During partitioning, the
13
+
`edge_program` only contains fake tensors without any data. In this case,
14
+
this state dict is used instead (if provided). Notice: It may potentially
15
+
contain outdated data,
16
+
* `preserve_ops` - list of aten operators to not decompose during the lowering.
17
+
* `check_op_support` - optional callable to check if an operator is supported.
13
18
14
19
--------------------
15
20
Compile Spec Options
@@ -18,11 +23,13 @@ To generate the Compile Spec for Neutron backend, you can use the `generate_neut
18
23
Following fields can be set:
19
24
20
25
* `config` - NXP platform defining the Neutron NPU configuration, e.g. "imxrt700".
26
+
* `intermediates_dir` - Directory to store intermediate artifact files.
21
27
* `extra_flags` - Extra flags for the Neutron compiler.
22
28
* `operators_not_to_delegate` - List of operators that will not be delegated.
23
29
* `use_neutron_for_format_conversion` - If True, let the eIQ Neutron NPU to handle conversion between channel-first (NCHW) and channel-last (NHWC) data formats. That is the Neutron backend will insert `Transpose` ops to ensure that the IO matches the executorch partition, which will be delegated to Neutron.
24
-
* `fetch_constants_to_sram`: If True, the Neutron Converter will insert microinstructions to prefetch weights from FLASH to SRAM. This should be used when the whole model does not fit into SRAM on Neutron-C devices, like i.MX RT700
25
-
* `dump_kernel_selection_code`: Whether Neutron converter dumps kernel selection code, which is used by the selective kernel registration, see :doc:`Neutron Firmware Kernel Selection support <nxp-kernel-selection.md>`.
30
+
* `fetch_constants_to_sram` - If True, the Neutron Converter will insert microinstructions to prefetch weights from FLASH to SRAM. This should be used when the whole model does not fit into SRAM on Neutron-C devices, like i.MX RT700.
31
+
* `dump_kernel_selection_code` - Whether Neutron converter dumps kernel selection code, which is used by the selective kernel registration, see :doc:`Neutron Firmware Kernel Selection support <nxp-kernel-selection.md>`.
32
+
* `use_profiling` - If true Neutron Converter will enable profiling for neutron delegated model.
26
33
27
34
-------------------------
28
35
Custom Delegation Options
@@ -37,7 +44,7 @@ Operator Support
37
44
Operators are the building blocks of the ML model. See `IRs <https://docs.pytorch.org/docs/stable/torch.compiler_ir.html>`_ for more information on the PyTorch operator set.
38
45
39
46
This section lists the Edge operators supported by the Neutron backend.
40
-
For detailed constraints of the operators see the ``is_supported`` / ``_is_supported_in_IR`` / ``_is_supported_on_target`` checks in the `Node converters <https://github.com/pytorch/executorch/blob/main/backends/nxp/backend/ir/converter/node_converter.py#L118>`_
47
+
For detailed constraints of the operators see the ``is_supported`` / ``_is_supported_in_IR`` / ``_is_supported_on_target`` checks in the `Node converters <https://github.com/pytorch/executorch/blob/main/backends/nxp/backend/ir/converter/node_converter.py#L105>`_
aten.permute_copy.default,int8,static int8,"Only specific transpositions supported, see backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py"
Copy file name to clipboardExpand all lines: docs/source/backends/nxp/tutorials/nxp-basic-tutorial.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This tutorial demonstrates the use of the eIQ Neutron backend with the Neutron b
9
9
### Software
10
10
First you need to have Python 3.10 - 3.12 installed.
11
11
12
-
You need to install the ExecuTorch. Please follow the tutorial to install the ExecuTorch [Setting Up ExecuTorch](../../../getting-started-setup.rst)
12
+
You need to install the ExecuTorch. Please follow the tutorial to install the ExecuTorch [Getting Started with ExecuTorch](https://docs.pytorch.org/executorch/main/getting-started.html)
13
13
14
14
15
15
In addition to this, you will need to install the eIQ Neutron Simulator, called NSYS,
@@ -31,7 +31,7 @@ format and delegate the model computation to eIQ Neutron NPU using the eIQ Neutr
31
31
32
32
### Step 1: Environment Setup
33
33
34
-
This tutorial is intended to be run from a Linux and uses Conda or Virtual Env for Python environment management. For full setup details and system requirements, see [Getting Started with ExecuTorch](/getting-started).
34
+
This tutorial is intended to be run from a Linux and uses Conda or Virtual Env for Python environment management. For full setup details and system requirements, see [Getting Started with ExecuTorch](https://docs.pytorch.org/executorch/main/getting-started.html).
35
35
36
36
Create a Conda environment and install the ExecuTorch Python package.
This project will guide you through the process of deploying your PTE model to the device.
45
47
To get the MCUXpresso SDK follow this [guide](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/middleware/eiq/executorch/docs/nxp/topics/getting_mcuxpresso.html),
0 commit comments