Repository: pytorch
Issue: [torch.export] Extraneous warnings from torch/fx/experimental/recording.py (related to overloads)
Labels: triaged,oncall: pt2,module: dynamic shapes,oncall: export

### 🐛 Describe the bug

I am starting to see extraneous warnings from `torch/fx/experimental/recording.py:298` when using torch.export. Here's a simple example that reproduces this issue:

```python
import torch
import torch.ao.quantization.fx

class Qdq(torch.nn.Module):

    def __init__(self):
        super().__init__()

    def forward(self, 
            x, x_scale, x_zp
            ):
        x_q = torch.ops.quantized_decomposed.quantize_per_tensor(     # type: ignore
                x, 
                x_scale,
                x_zp,
                -127,
                127,
                torch.int8)
        x_dq = torch.ops.quantized_decomposed.dequantize_per_tensor(  # type: ignore
                x_q, 
                x_scale,
                x_zp,
                -127,
                127,
                torch.int8)
        return x_dq


p_qdq = torch.export.export(   # type: ignore
        Qdq().eval(), 
        (
            torch.randn([4,4]),
            torch.tensor(1/127, dtype=torch.float),
            torch.tensor(0, dtype=torch.float)
        )
    )
```

The following warnings get generated when I run this code:

```
W0825 10:43:38.969793 16100 torch/fx/experimental/symbolic_shapes.py:5131] failed during evaluate_expr(zuf0, hint=None, expect_rational=False, size_oblivious=False, forcing_spec=False
E0825 10:43:38.970002 16100 torch/fx/experimental/recording.py:298] failed while running evaluate_expr(*(zuf0, None), **{'fx_node': False, 'expect_rational': False})
W0825 10:43:39.010174 16100 torch/fx/experimental/symbolic_shapes.py:5131] failed during evaluate_expr(zuf0, hint=None, expect_rational=False, size_oblivious=False, forcing_spec=False
E0825 10:43:39.010313 16100 torch/fx/experimental/recording.py:298] failed while running evaluate_expr(*(zuf0, None), **{'fx_node': False, 'expect_rational': False})

... snipped ...
```

The warnings seem to go away if I specify the precise overload (i.e., change `torch.ops.quantized_decomposed.quantize_per_tensor` to `torch.ops.quantized_decomposed.quantize_per_tensor.tensor`), but this defeats the point of defining and using overloads (unless I am missing something).

Does the warning in `recordings.py` need to take into account the actual overload (in this case `.tensor`) that is invoked?

Please let me know if I can provide more information.

PyTorch Version: `2.5.0.dev20240821+cpu`

Thanks!



### Versions

Collecting environment information...
PyTorch version: 2.5.0.dev20240821+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Debian GNU/Linux 11 (bullseye) (x86_64)
GCC version: (Debian 10.2.1-6) 10.2.1 20210110
Clang version: 11.0.1-2
CMake version: version 3.30.2
Libc version: glibc-2.31

Python version: 3.10.0 | packaged by conda-forge | (default, Nov 20 2021, 02:24:10) [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-4.12.14-122.183-default-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] executorch==0.4.0a0+26e921e
[pip3] numpy==1.26.4
[pip3] onnx==1.16.2
[pip3] torch==2.5.0.dev20240821+cpu
[pip3] torchaudio==2.4.0.dev20240821+cpu
[pip3] torchsr==1.0.4
[pip3] torchvision==0.20.0.dev20240821+cpu
[conda] executorch                0.4.0a0+26e921e          pypi_0    pypi
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] torch                     2.5.0.dev20240821+cpu          pypi_0    pypi
[conda] torchaudio                2.4.0.dev20240821+cpu          pypi_0    pypi
[conda] torchsr                   1.0.4                    pypi_0    pypi
[conda] torchvision               0.20.0.dev20240821+cpu          pypi_0    pypi


cc @ezyang @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4