Repository: pytorch
Issue: 38 Dynamo test are failing with "BuiltinVariable.tensor_args() got multiple values for argument 'self'".
Labels: low priority,triaged,oncall: pt2,module: dynamo,dynamo-must-fix

38 Dynamo test are failing with "BuiltinVariable.tensor_args() got multiple values for argument 'self'".

## Repro

`PYTORCH_TEST_WITH_DYNAMO=1 pytest test_nn.py -v -k test_fuse_module_eval_numerics`

You will need to remove the skip or expectedFailure before running the repro command.
This may be deleting a file in https://github.com/pytorch/pytorch/tree/main/test/dynamo_skips or https://github.com/pytorch/pytorch/tree/main/test/dynamo_expected_failures 

## Failing tests

Here's a comprehensive list of tests that fail (as of this issue) with the above message:
<details>
<summary>Click me</summary>

```
test_quantization.py::TestQuantizedOps.test_cat_nhwc
test_quantization.py::TestQuantizedOps.test_max_pool2d_nhwc
test_nn.py::TestFusionEval.test_fuse_module_eval_numerics
test_quantization.py::TestQuantizedOps.test_interpolate
test_quantization.py::TestQuantizedOps.test_interpolate3d
test_quantization.py::TestQuantizedOps.test_avg_pool2d_nhwc
test_quantization.py::TestQuantizedOps.test_avg_pool3d_nhwc
```

</details>

The following tests were fixed by https://github.com/pytorch/pytorch/pull/120836/:
<details>
<summary>Click me</summary>

```
test_quantization.py::TestComparatorOps.test_compare_tensor_tensor
test_quantization.py::TestComparatorOps.test_compare_tensor_scalar
test_quantization.py::TestFakeQuantize.test_fq_module_per_channel
test_quantization.py::TestFakeQuantizeOps.test_fake_quant_per_channel_qparam_range
test_quantization.py::TestFakeQuantizeOps.test_fixed_qparams_fq_module
test_quantization.py::TestFakeQuantizeOps.test_forward_per_channel
test_quantization.py::TestFakeQuantizeOps.test_forward_per_tensor
test_quantization.py::TestFakeQuantizeOps.test_fq_module_per_tensor
test_quantization.py::TestFakeQuantizeOps.test_learnable_backward_per_tensor_cpu
test_quantization.py::TestFakeQuantizeOps.test_learnable_forward_per_channel_cpu
test_quantization.py::TestQNNPackOps.test_qnnpack_add
test_quantization.py::TestQNNPackOps.test_qnnpack_mul
test_quantization.py::TestQNNPackOps.test_qnnpack_maxpool2d
test_quantization.py::TestQNNPackOps.test_qnnpack_relu
test_quantization.py::TestQuantizedOps.test_add_scalar_relu
test_quantization.py::TestQuantizedOps.test_avg_pool2d
test_quantization.py::TestQuantizedOps.test_avg_pool3d
test_quantization.py::TestQuantizedOps.test_cat
test_quantization.py::TestQuantizedOps.test_channel_shuffle
test_quantization.py::TestQuantizedOps.test_equal
test_quantization.py::TestQuantizedOps.test_hardtanh
test_quantization.py::TestQuantizedOps.test_leaky_relu_observed_output
test_quantization.py::TestQuantizedOps.test_max_pool1d
test_quantization.py::TestQuantizedOps.test_max_pool2d
test_quantization.py::TestQuantizedOps.test_mul_scalar_relu
test_quantization.py::TestQuantizedOps.test_qcelu
test_quantization.py::TestQuantizedOps.test_qclamp
test_quantization.py::TestQuantizedOps.test_qelu
test_quantization.py::TestQuantizedOps.test_qthreshold
test_quantization.py::TestQuantizedOps.test_sigmoid
test_quantization.py::TestQuantizedOps.test_sigmoid_non_observed
TestFusionEval.test_fuse_module_eval_numerics
TestQuantizedConv.test_qconv1d_unpack
TestQuantizedConv.test_qconv2d_unpack
TestQuantizedConv.test_qconv3d_unpack
TestQuantizedLinear.test_qlinear_qnnpack_free_memory_and_unpack
TestQuantizedLinear.test_qlinear_unpack
```

</details>

cc @ezyang @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @msaroufim @bdhirsh @aakhundov