Skip to content

Commit 29761c8

Browse files
authored
Arm backend: Promote InsertDataLayoutCastsPass up pass list (pytorch#19332)
* Move above Aten -> TOSA transforms to ensure dtypes are valid Change-Id: I021289f51f75e1a303050d0ffcf3b939f67ee88f cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell Signed-off-by: Tom Allsop <tom.allsop@arm.com>
1 parent 5363438 commit 29761c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/arm/_passes/arm_pass_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ def _tosa_pipeline(
524524
DecomposeSumPass(),
525525
InsertTableOpsPass(exported_program),
526526
RemoveNoopPass(),
527+
InsertDataLayoutCastsPass(),
527528
]
528529
)
529530

@@ -556,7 +557,6 @@ def _tosa_pipeline(
556557
EnsureUniqueOutputNodesPass(),
557558
RemoveNoopPass(),
558559
InsertRescalePass(),
559-
InsertDataLayoutCastsPass(),
560560
]
561561
)
562562

0 commit comments

Comments
 (0)