Fix remove _to_copy pass.
Summary: Turns out that .to() can also change memory format, therefore we need to ensure the strides and shapes don't change before removing _to_copy node. Reviewed By: cccclai Differential Revision: D56637766 fbshipit-source-id: 50f59daac6ed69a833e67a276065ed911b31b054
Z
Zhengxu Chen committed
92b5aea5e6a152e93f241e605616a1b96f25fb99
Parent: 8dcc1ad
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 4/26/2024, 9:08:01 PM