inductor: make sure as_strided ops' input layout is not changed after converting conv's weight format (#105122)
For the freezing path, if we convert conv's weight to channels last, we need to make sure as_strided ops' input layout is not changed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105122
Approved by: https://github.com/jgong5, https://github.com/shunting314