Repository: pytorch
Issue: [inductor] test_fft_real_inputs fails with dynamic shapes
Labels: good first issue,triaged,oncall: pt2,module: dynamic shapes,module: inductor

### 🐛 Describe the bug

```python
python test/inductor/test_torchinductor_dynamic_shapes.py -k fft
python test/inductor/test_torchinductor_codegen_dynamic_shapes.py -k fft
```

(you will need to un-xfail the tests in `test_torchinductor_(codegen)?_dynamic_shapes.py` files)

Fails with this error:

```
  File "/data/users/dberard/pytorch/torch/_functorch/aot_autograd.py", line 3233, in create_aot_dispatcher_function
    compiled_fn = compiler_fn(flat_fn, fake_flat_args, aot_config, fw_metadata=fw_metadata)
  File "/data/users/dberard/pytorch/torch/_functorch/aot_autograd.py", line 2073, in aot_wrapper_dedupe
    return compiler_fn(flat_fn, leaf_flat_args, aot_config, fw_metadata=fw_metadata)
  File "/data/users/dberard/pytorch/torch/_functorch/aot_autograd.py", line 2253, in aot_wrapper_synthetic_base
    return compiler_fn(flat_fn, flat_args, aot_config, fw_metadata=fw_metadata)
  File "/data/users/dberard/pytorch/torch/_functorch/aot_autograd.py", line 1527, in aot_dispatch_base
    compiled_fw = compiler(fw_module, flat_args)
  File "/data/users/dberard/pytorch/torch/_dynamo/utils.py", line 180, in time_wrapper
    r = func(*args, **kwargs)
  File "/data/users/dberard/pytorch/torch/_inductor/compile_fx.py", line 763, in fw_compiler_base
    return inner_compile(
  File "/data/users/dberard/pytorch/torch/_dynamo/repro/after_aot.py", line 80, in debug_wrapper
    inner_compiled_fn = compiler_fn(gm, example_inputs)
  File "/data/users/dberard/pytorch/torch/_inductor/debug.py", line 220, in inner
    return fn(*args, **kwargs)
  File "/home/dberard/local/miniconda3/envs/pytorch/lib/python3.9/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/data/users/dberard/pytorch/torch/_inductor/compile_fx.py", line 47, in newFunction
    return old_func(*args, **kwargs)
  File "/data/users/dberard/pytorch/torch/_inductor/compile_fx.py", line 316, in compile_fx_inner
    graph.run(*example_inputs)
  File "/data/users/dberard/pytorch/torch/_dynamo/utils.py", line 180, in time_wrapper
    r = func(*args, **kwargs)
  File "/data/users/dberard/pytorch/torch/_inductor/graph.py", line 403, in run
    return super().run(*args)
  File "/data/users/dberard/pytorch/torch/fx/interpreter.py", line 138, in run
    self.env[node] = self.run_node(node)
  File "/data/users/dberard/pytorch/torch/_inductor/graph.py", line 643, in run_node
    result = fallback_handler(n.target, add_to_fallback_set=False)(
  File "/data/users/dberard/pytorch/torch/_inductor/lowering.py", line 1127, in handler
    TensorBox.create, ir.FallbackKernel.create(kernel, *args, **kwargs)
  File "/data/users/dberard/pytorch/torch/_inductor/ir.py", line 3321, in create
    ) = cls.process_kernel(kernel, *args, **kwargs)
  File "/data/users/dberard/pytorch/torch/_inductor/ir.py", line 2711, in process_kernel
    example_args.append(ir_node_to_tensor(x, guard_shape=True))
  File "/data/users/dberard/pytorch/torch/_inductor/ir.py", line 200, in ir_node_to_tensor
    t = torch.empty_strided(
torch._dynamo.exc.BackendCompilerFailed: backend='compile_fx_wrapper' raised:
RuntimeError: aten/src/ATen/RegisterCUDA.cpp:7002: SymIntArrayRef expected to contain only concrete integers
```

### Versions

main branch / after https://github.com/pytorch/pytorch/pull/103183 lands

cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @ngimel @yf225 @aakhundov