Repository: pytorch
Issue: 110 Dynamo test are failing with "Failed running call_function <built-in method sparse_coo_tensor of type object at 0xDEADBEEF".
Labels: low priority,triaged,oncall: pt2,module: dynamo

110 Dynamo test are failing with "Failed running call_function <built-in method sparse_coo_tensor of type object at 0xDEADBEEF".

## Repro

`PYTORCH_TEST_WITH_DYNAMO=1 pytest test_dlpack.py -v -k test_dlpack_export_non_strided_cpu`

You will need to remove the skip or expectedFailure before running the repro command.
This may be just removing a line in
[dynamo_test_failures.py](https://github.com/pytorch/pytorch/blob/main/torch/testing/_internal/dynamo_test_failures.py)

## 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_dlpack.py::TestTorchDlPackCPU.test_dlpack_export_non_strided_cpu
profiler/test_profiler.py::TestTorchTidyProfiler.test_sparse_tensors
test_testing.py::TestAssertCloseSparseCOO.test_matching_coalesced
test_testing.py::TestAssertCloseSparseCOO.test_matching_uncoalesced
test_testing.py::TestAssertCloseSparseCOO.test_mismatching_indices_msg
test_testing.py::TestAssertCloseSparseCOO.test_mismatching_nnz
test_testing.py::TestAssertCloseSparseCOO.test_mismatching_values_msg
test_sparse.py::TestSparseCPU.test_add_dense_sparse_mismatch_cpu_complex128
test_sparse.py::TestSparseCPU.test_add_dense_sparse_mismatch_cpu_float64
test_sparse.py::TestSparseCPU.test_any_cpu
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_float32
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_float64
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_int16
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_int32
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_int64
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_int8
test_sparse.py::TestSparseCPU.test_asin_arcsin_cpu_uint8
test_sparse.py::TestSparseCPU.test_basic_cpu_complex128
test_sparse.py::TestSparseCPU.test_basic_cpu_float64
test_sparse.py::TestSparseCPU.test_change_tensor_metadata_cpu_complex128
test_sparse.py::TestSparseCPU.test_change_tensor_metadata_cpu_float64
test_sparse.py::TestSparseCPU.test_contig_cpu_complex128
test_sparse.py::TestSparseCPU.test_contig_cpu_float64
test_sparse.py::TestSparseCPU.test_contig_hybrid_cpu_complex128
test_sparse.py::TestSparseCPU.test_contig_hybrid_cpu_float64
test_sparse.py::TestSparseCPU.test_ctor_is_coalesced_with_gradcheck_cpu_float64
test_sparse.py::TestSparseCPU.test_empty_like_cpu_complex128
test_sparse.py::TestSparseCPU.test_empty_like_cpu_float64
test_sparse.py::TestSparseCPU.test_factory_copy_cpu
test_sparse.py::TestSparseCPU.test_factory_cpu_complex128
test_sparse.py::TestSparseCPU.test_factory_cpu_complex64
test_sparse.py::TestSparseCPU.test_factory_cpu_float16
test_sparse.py::TestSparseCPU.test_factory_cpu_float32
test_sparse.py::TestSparseCPU.test_factory_cpu_float64
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_complex128
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_complex64
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_float16
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_float32
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_float64
test_sparse.py::TestSparseCPU.test_factory_type_inference_cpu_int64
test_sparse.py::TestSparseCPU.test_is_nonzero_cpu
test_sparse.py::TestSparseCPU.test_isnan_cpu
test_sparse.py::TestSparseCPU.test_legacy_new_cpu
test_sparse.py::TestSparseCPU.test_legacy_new_device_cpu
test_sparse.py::TestSparseCPU.test_log1p_cpu_float32
test_sparse.py::TestSparseCPU.test_log1p_cpu_float64
test_sparse.py::TestSparseCPU.test_log1p_cpu_int16
test_sparse.py::TestSparseCPU.test_log1p_cpu_int32
test_sparse.py::TestSparseCPU.test_log1p_cpu_int64
test_sparse.py::TestSparseCPU.test_log1p_cpu_int8
test_sparse.py::TestSparseCPU.test_log1p_cpu_uint8
test_sparse.py::TestSparseCPU.test_neg_negative_cpu_complex128
test_sparse.py::TestSparseCPU.test_neg_negative_cpu_float64
test_sparse.py::TestSparseCPU.test_pickle_cpu_float64
test_sparse.py::TestSparseCPU.test_resize_cpu_complex128
test_sparse.py::TestSparseCPU.test_resize_cpu_float64
test_sparse.py::TestSparseCPU.test_select_no_type_promotion_cpu_int16
test_sparse.py::TestSparseCPU.test_select_no_type_promotion_cpu_int32
test_sparse.py::TestSparseCPU.test_select_no_type_promotion_cpu_int64
test_sparse.py::TestSparseCPU.test_select_no_type_promotion_cpu_int8
test_sparse.py::TestSparseCPU.test_select_no_type_promotion_cpu_uint8
test_sparse.py::TestSparseCPU.test_shared_cpu_complex128
test_sparse.py::TestSparseCPU.test_shared_cpu_float64
test_sparse.py::TestSparseCPU.test_small_nnz_coalesced_cpu
test_sparse.py::TestSparseCPU.test_spadd_cpu_float64
test_sparse.py::TestSparseCPU.test_sparse_add_coalesce_cpu_complex128
test_sparse.py::TestSparseCPU.test_sparse_add_coalesce_cpu_complex64
test_sparse.py::TestSparseCPU.test_sparse_add_coalesce_cpu_float32
test_sparse.py::TestSparseCPU.test_sparse_add_coalesce_cpu_float64
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_bool
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_int16
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_int32
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_int64
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_int8
test_sparse.py::TestSparseCPU.test_sparse_dense_mul_cpu_uint8
test_sparse.py::TestSparseCPU.test_sparse_mask_cpu_complex128
test_sparse.py::TestSparseCPU.test_sparse_mask_cpu_float64
test_sparse.py::TestSparseCPU.test_sparse_mask_hybrid_cpu_complex128
test_sparse.py::TestSparseCPU.test_sparse_mask_hybrid_cpu_float64
test_sparse.py::TestSparseCPU.test_sparse_to_numpy_cpu
test_sparse.py::TestSparseCPU.test_sum_cpu_bool
test_sparse.py::TestSparseCPU.test_sum_cpu_int16
test_sparse.py::TestSparseCPU.test_sum_cpu_int32
test_sparse.py::TestSparseCPU.test_sum_cpu_int64
test_sparse.py::TestSparseCPU.test_sum_cpu_int8
test_sparse.py::TestSparseCPU.test_sum_cpu_uint8
test_sparse.py::TestSparseCPU.test_to_dense_hybrid_masked_cpu_complex128
test_sparse.py::TestSparseCPU.test_to_dense_hybrid_masked_cpu_float64
test_sparse.py::TestSparseCPU.test_to_dense_hybrid_sparse_cpu_complex128
test_sparse.py::TestSparseCPU.test_to_dense_hybrid_sparse_cpu_float64
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_bfloat16
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_complex128
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_complex64
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_float16
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_float32
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_masked_cpu_float64
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_bfloat16
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_complex128
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_complex64
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_float16
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_float32
test_sparse.py::TestSparseCPU.test_to_dense_with_gradcheck_sparse_cpu_float64
test_sparse.py::TestSparseAnyCPU.test_constructor_autograd_SparseCOO_cpu
test_autograd.py::TestAutograd.test_accumulate_grad_tensor_reference
test_autograd.py::TestAutograd.test_no_grad_copy_sparse
test_autograd.py::TestAutograd.test_set_data_tensorimpl_type
test_autograd.py::TestAutogradDeviceTypeCPU.test_sparse_ctor_getter_backward_cpu_complex128
test_autograd.py::TestAutogradDeviceTypeCPU.test_sparse_ctor_getter_backward_cpu_float64
test_nn.py::TestNN.test_overwrite_module_params_on_conversion
test_maskedtensor.py::TestBasicsCPU.test_invalid_sparse_coo_values_cpu
```
</details>

cc @ezyang @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @msaroufim @bdhirsh @aakhundov