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
Arm backend: Remove build_quantized_ops_aot_lib.sh (#10350)
This lib is built by default when installing executorch, so use that
instead of building our own version. The the version built by executorch
however has an extra dependency on _portable_lib.cpython-310, which
needs to be loaded as well.
Also removes all mentions of this script in related files.
Signed-off-by: Adrian Lundell <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/backends-arm-ethos-u.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,6 @@ To compile for the NPUs, the Ethos-U Vela compiler is needed. A target-specific
17
17
18
18
These dependencies can easily be downloaded using the script `examples/arm/setup.sh`.
19
19
20
-
To work with with quantized models, build the quantize_ops_aot library that contains kernels for quantization and dequantization. This can be done with the script
The example below demonstrates the lowering processs of a MobileNet V2 model from torchvision for a Ethos-U55 target. Since the model is a floating point model, first quantize it using the `EthosUQuantizer`. Then, pass an instance of the `EthosUPartitioner` to `to_edge_transform_and_lower`. Both the quantizer and the partitioner need a compilation specification created using `ArmCompileSpecBuilder`.
# should produce ./mv2_arm_delegate_ethos-u55-128.pte
270
251
```
271
252
@@ -315,7 +296,7 @@ To run a `.pte` file with the Arm backend delegate call instructions, you will n
315
296
316
297
- `libexecutorch_delegate_ethos_u.a`
317
298
318
-
These libraries are generated by the `backends/arm/scripts/build_executorch.sh`, `backends/arm/scripts/build_portable_kernels.sh`and `backends/arm/scripts/build_quantized_ops_aot_lib.sh` scripts called from the `run.sh` script.
299
+
These libraries are generated by the `backends/arm/scripts/build_executorch.sh`and `backends/arm/scripts/build_portable_kernels.sh` scripts called from the `run.sh` script.
319
300
320
301
The `--portable_kernels` flag can be used to set the build flag `EXECUTORCH_SELECT_OPS_LIST` when running `backends/arm/scripts/build_portable_kernels.sh` that will decide the number of portable operators included in the build and are available at runtime. It must match with `.pte` file's requirements, otherwise you will get `Missing Operator` error at runtime.
"The quantization nodes created in the previous cell are not built by default with ExecuTorch but must be included in the .pte-file, and so they need to be built separately. `backends/arm/scripts/build_quantized_ops_aot_lib.sh` is a utility script which does this. "
0 commit comments