Repository: pytorch
Issue: [inductor][cpu]test_numpy_ref_signal_windows_bartlett_cpu_float64 failure on cpu
Labels: triaged,module: correctness (silent),oncall: pt2,module: decompositions

### 🐛 Describe the bug

TestCommonCPU.test_numpy_ref_signal_windows_bartlett_cpu_float64 failure on cpu

**Error log**
```
This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
=================================== FAILURES ===================================
_______ TestCommonCPU.test_numpy_ref_signal_windows_bartlett_cpu_float64 _______
Traceback (most recent call last):
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_device_type.py", line 1121, in test_wrapper
    return test(*args, **kwargs)
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_device_type.py", line 1382, in only_fn
    return fn(self, *args, **kwargs)
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_utils.py", line 1940, in wrapper
    fn(*args, **kwargs)
  File "test_ops.py", line 279, in test_numpy_ref
    with set_default_dtype(torch.double):
  File "test_ops.py", line 281, in torch_dynamo_resume_in_test_numpy_ref_at_279
    self.compare_with_reference(
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_utils.py", line 3489, in compare_with_reference
    self.assertEqual(actual, expected, exact_device=False, **kwargs)
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_utils.py", line 3631, in assertEqual
    raise error_metas.pop()[0].to_error(
AssertionError: Tensor-likes are not close!

Mismatched elements: 3 / 3 (100.0%)
Greatest absolute difference: nan at index (0,) (up to 1e-07 allowed)
Greatest relative difference: nan at index (0,) (up to 1e-07 allowed)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_utils.py", line 2739, in wrapper
    method(*args, **kwargs)
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_device_type.py", line 446, in instantiated_test
    result = test(self, **param_kwargs)
  File "/opt/conda/envs/py_3.8/lib/python3.8/site-packages/torch/testing/_internal/common_device_type.py", line 1127, in test_wrapper
    raise Exception(  # noqa: TRY002
Exception: Caused by reference input at index 6: SampleInput(input=3, args=(), kwargs={'sym': 'True', 'device': "'cpu'", 'dtype': 'torch.float64', 'requires_grad': 'False'}, broadcasts_input=False, name='')

To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_WITH_INDUCTOR=1 python test/test_ops.py -k TestCommonCPU.test_numpy_ref_signal_windows_bartlett_cpu_float64
```
Repro:
```
PYTORCH_TEST_WITH_INDUCTOR=1 python test/test_ops.py -k TestCommonCPU.test_numpy_ref_signal_windows_bartlett_cpu_float64
```

### Versions

https://github.com/pytorch/pytorch/commit/eb1583dbc1a8c4a8f0d1525438f16350f11f1208

cc @ezyang @anijain2305 @chauhang @penguinwu @SherlockNoMad