Commit e12e637
Disable _sort_outputs in TOSA backend (MLETORCH-1266) (#17138)
Summary:
Disables the _sort_outputs call in the TOSA backend lowering.
The _sort_outputs function reorders TOSA flatbuffer outputs, but the
runner reads output shapes from original_module (a pre-preprocess copy),
creating a mismatch between expected and actual output order.
The TOSA reference model preserves flatbuffer order, so no sorting is
actually needed. This change prevents the mismatch issue.
When output_order_workaround is enabled, the code now logs a debug
message indicating the option is set but _sort_outputs is disabled.
---
> Generated by [Confucius Code Assist (CCA)](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/)
[Confucius Session](https://www.internalfb.com/confucius?host=62602.od.fbinfra.net&port=8086&tab=Chat&session_id=e1d1ac52-0014-11f1-9d55-75b7d4e71d8a&entry_name=Code+Assist), [Trace](https://www.internalfb.com/confucius?session_id=e1d1ac52-0014-11f1-9d55-75b7d4e71d8a&tab=Trace)
Differential Revision: D920590441 parent 3904346 commit e12e637
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
0 commit comments