inductor: inductor conv2d get a different size and stride with eager mod when input channel is zero
Labels: triaged, ZeroTensor, module: inductor

### 🐛 Describe the bug

For con2d's input channel is zero, the inductor gets the wrong size and stride with the eager mod(the eager mod's size and stride are ```(3, 0, 7, 14)``` and
```(98, 98, 14, 1)```, but inductor's size and stride are ```(3, 8, 7, 14)``` and ```(784, 98, 14, 1)```, I think we need to align the behavior.

```python
import torch
import torch._inductor.config as config
config.cpp.weight_prepack=False
torch.manual_seed(420)

x = torch.randn(3, 0, 16, 16)
class Module(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = torch.nn.Conv2d(in_channels=0, out_channels=8, kernel_size=(3, 3), stride=(2, 1), padding=(0,), dilation=1)

    def forward(self, x):
        x = self.conv1(x)
        return x

func = Module().to('cpu')

with torch.no_grad():
    func.train(False)
    res1 = func(x) # without jit
    print(res1)
    jit_func = torch.compile(func)
    res2 = jit_func(x)
    print(torch.equal(res1, res2))
```

expected output:

```

  File "/home/xiaobing/pytorch-offical/torch/_functorch/aot_autograd.py", line 1318, in call_func_with_args
    out = normalize_as_list(f(args))
  File "/home/xiaobing/pytorch-offical/torch/_functorch/aot_autograd.py", line 1405, in rng_functionalization_wrapper
    return compiled_fw(args)
  File "/tmp/torchinductor_xiaobing/lc/clceh4wrtimlylfyukiuk6t3h6pwayfkdyy2chyzirfutompzo2y.py", line 27, in call
    assert_size_stride(buf0, (3, 8, 7, 14), (784, 98, 14, 1))
AssertionError: expected size 3==3, stride 98==784 at dim=0

```

### Versions

```
PyTorch version: 2.1.0a0+git036a8d6
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.5 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.31

Python version: 3.9.16 (main, Mar  8 2023, 14:00:05)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] bert-pytorch==0.0.1a4
[pip3] clip-anytorch==2.5.2
[pip3] CoCa-pytorch==0.0.7
[pip3] dalle2-pytorch==1.10.5
[pip3] ema-pytorch==0.2.2
[pip3] functorch==1.14.0a0+408bcf1
[pip3] intel-extension-for-pytorch==2.1.0+git8fb55c7
[pip3] mypy==0.960
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.23.1
[pip3] pytorch-transformers==1.2.0
[pip3] pytorch-warmup==0.1.1
[pip3] rotary-embedding-torch==0.2.1
[pip3] torch==2.1.0a0+git6211ead
[pip3] torch-fidelity==0.3.0
[pip3] torch-struct==0.5
[pip3] torchaudio==2.0.0a0+a8f4e97
[pip3] torchdata==0.7.0a0+f1283eb
[pip3] torchmetrics==0.11.4
[pip3] torchrec-nightly==2023.3.23
[pip3] torchtext==0.15.0a0+46e7eef
[pip3] torchvision==0.15.0a0+98c5815
[pip3] vector-quantize-pytorch==1.1.2
[conda] bert-pytorch              0.0.1a4                   dev_0    <develop>
[conda] clip-anytorch             2.5.2                    pypi_0    pypi
[conda] coca-pytorch              0.0.7                    pypi_0    pypi
[conda] dalle2-pytorch            1.10.5                   pypi_0    pypi
[conda] ema-pytorch               0.2.2                    pypi_0    pypi
[conda] functorch                 1.14.0a0+408bcf1          pypi_0    pypi
[conda] intel-extension-for-pytorch 2.1.0+git8fb55c7           dev_0    <develop>
[conda] mkl                       2023.0.0         h6d00ec8_25399
[conda] mkl-include               2023.1.0                 pypi_0    pypi
[conda] mkl-static                2023.1.0                 pypi_0    pypi
[conda] numpy                     1.23.1                   pypi_0    pypi
[conda] pytorch-transformers      1.2.0                    pypi_0    pypi
[conda] pytorch-warmup            0.1.1                    pypi_0    pypi
[conda] rotary-embedding-torch    0.2.1                    pypi_0    pypi
[conda] torch                     2.1.0a0+git6211ead           dev_0    <develop>
[conda] torch-fidelity            0.3.0                    pypi_0    pypi
[conda] torch-struct              0.5                      pypi_0    pypi
[conda] torchaudio                2.0.0a0+a8f4e97          pypi_0    pypi
[conda] torchdata                 0.6.0                    pypi_0    pypi
[conda] torchmetrics              0.11.4                   pypi_0    pypi
[conda] torchrec-nightly          2023.3.23                pypi_0    pypi
[conda] torchtext                 0.15.0a0+46e7eef          pypi_0    pypi
[conda] torchvision               0.15.0a0+98c5815          pypi_0    pypi
[conda] vector-quantize-pytorch   1.1.2                    pypi_0    pypi

```

cc @soumith @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @desertfire