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: Align dim_order ops handling (#14064)
- Removes all use of the _to_copy/clone operator. These ops are lowered
to _to_dim_order_copy/ clone_dim_order in the to_edge step when
skip_dim_order=False, which we expect.
- Remove all dim_order kwargs in the to_tosa_memory_format_pass since we
set our own dim_order.
- Add a pass for storing the initial output dim_order to verify that it
has not changed unexpectedly.
- Replace RemoveClonePass with more general RemoveNoopPass which also
handles to_dim_order ops casting to the same dtype. Move to after the
to_tosa_memory_pass to tidy up after it.
- Change the delegation of to_copy_dim_order_support to pick up casts of
the same dtype, as they are removed as noops anyways.
Minor fixes:
- Renames to_copy tests to be picked up by the op name parser.
- Moves cast_int64 pass to after compute_constant_ops_aot to assert the
buffer exists in .state_dict before accessing it.
- Replace fatal xfail for test_CLIPTextModelWithProjection with
numerical diff xfail
Signed-off-by: Adrian Lundell <[email protected]>
f"{AnnotateOutputDimOrderPass.__name__} must be run in the beginning of the pass pipeline to verify that the dim order has not changed unexpectedly during its run."
318
+
)
319
+
320
+
iflen(dim_orders) !=len(original_dim_orders):
321
+
raiseRuntimeError(
322
+
f"The number of outputs has changed since {AnnotateOutputDimOrderPass.__name__} was run."
0 commit comments