[inductor] Fix a conv stride assertion (#94405)
Summary: The issue appears when _inductor.config.tune_layout is set. If
we pick a different aten convolution memory format, we need to transform
its input layout.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94405
Approved by: https://github.com/jansel