SIGN IN SIGN UP

[ET-VK] Add pass to remove copy ops (#7326)

## Context

This diff prepares Vulkan to handle dim order operators. For more context, see https://github.com/pytorch/executorch/issues/4873

Since Vulkan has its own internal representation of memory layout, these ops are handled by simply remove explicit memory layout transition operators from the graph and let the memory metadata tagging pass insert the necessary memory layout transitions.

A new pass is added to remove such operators, largely based on QNN's `RemoveRedundancy` pass.

Differential Revision: [D67180898](https://our.internmc.facebook.com/intern/diff/D67180898/)

ghstack-source-id: 258092214
Pull Request resolved: https://github.com/pytorch/executorch/pull/7325

Co-authored-by: Stephen Jia <ssjia@meta.com>
P
pytorchbot committed
a3f792a6fed2a93ae57dd0d69a0ea94ce2700edf
Parent: 47c2f2e
Committed by GitHub <noreply@github.com> on 12/16/2024, 6:31:57 PM