Commit 9413da0
authored
NXP backend: Replace pass to fuse activations functions with joint quantization with activation (#14816)
### Summary
This PR replaces optimizations 'fuse_activation_functions.py' by
quantization of Conv 2D and Linear ops together with fusable activations
- selected activations supported by Neutron (Relu, Relu6, Sigmoid,
Tanh). Logic is determined by target specs, now supporting Neutron-C. Unified delegation workflow in `executorch_pipeline.py` and `aot_neutron_compile.py` and changed `NeutronEdgePassManager` usage.
Tests updated. Relu has now non-shared, standalone quantization. Small refactoring of unit tests.
### Test plan
Unit tests provided (test_edge_passes.py, test_quantizer.py).
cc @robert-kalmar @JakeStevens @digantdesai1 parent 1f114f1 commit 9413da0
File tree
21 files changed
+1009
-518
lines changed- backends/nxp
- backend
- ir/tflite_optimizer
- optimizations
- edge_passes
- quantizer
- tests
- ir/converter/node_converter
- examples/nxp
21 files changed
+1009
-518
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
11 | 33 | | |
12 | 34 | | |
13 | 35 | | |
| |||
62 | 84 | | |
63 | 85 | | |
64 | 86 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
| |||
Lines changed: 0 additions & 235 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 62 | | |
71 | 63 | | |
72 | 64 | | |
| |||
0 commit comments