SIGN IN SIGN UP

make memory format pass as default in Executorch AOT (#2205)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/2205

This diff aims to make memory format pass, as the default pass, for any Executorch in edge dialect, which means a. we will leverage `to_dim_order_copy` to do dtype and memory format conversion between tensors instead of `to_copy`, and support both contiguous and channel_last memory format.

Worth to mention is `dim_order_copy_ops` can not support backend delegation and jarvis codebase. We still keep them, as well as examples, as they are. T182187531, T181829559 and T182928844 are tasks for the procedure.

Reviewed By: Jack-Khuu, manuelcandales

Differential Revision: D53567853

fbshipit-source-id: 4747f92257c135bb5494d209c06321deb1b6ef02
S
Songhao Jia committed
e95f87b7e36c417dfc02cae0f379f28d4690477a
Parent: 50e9ee9
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 5/7/2024, 4:49:32 AM