Commit e712c31
committed
Arm backend: Minor composable_quantizer improvements
- Make sure the root node of a shared cluster is the topological
first node of the model to avoid crash in torchao.
- Do not report get_attr as non-annotated as these are never quantized,
leading to unnecessarily long logs.
- Make SharedQuantization logging more straight to the point. Do not
warn for multiple users as this is resported in the quantizer report
and use one single simple log message when nodes are left unquantized.
- Make the pre-transform for annotation report more minimal and only
print it when relevant + update the notebook example to this fact.
Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
Change-Id: I412918235799c99ab4b1b1e1f6412de4c906766f1 parent 1debeb6 commit e712c31
4 files changed
Lines changed: 71 additions & 53 deletions
File tree
- backends
- arm/quantizer
- cortex_m
- examples/arm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1112 | 1129 | | |
1113 | 1130 | | |
1114 | 1131 | | |
| |||
1121 | 1138 | | |
1122 | 1139 | | |
1123 | 1140 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | 1141 | | |
1128 | | - | |
1129 | 1142 | | |
1130 | 1143 | | |
1131 | 1144 | | |
1132 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1133 | 1148 | | |
1134 | 1149 | | |
1135 | 1150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
| 595 | + | |
| 596 | + | |
600 | 597 | | |
| 598 | + | |
601 | 599 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
622 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
623 | 618 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
628 | 624 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
635 | 630 | | |
636 | 631 | | |
637 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
387 | 389 | | |
388 | 390 | | |
389 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
173 | 189 | | |
174 | 190 | | |
175 | 191 | | |
| |||
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
190 | | - | |
| 206 | + | |
191 | 207 | | |
192 | 208 | | |
193 | 209 | | |
| |||
198 | 214 | | |
199 | 215 | | |
200 | 216 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
0 commit comments