Description
An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.Tensor.to_sparse() and torch.Tensor.to_dense() and is compiled by Inductor.
References
github.com/pytorch/pytorch/issues/151522
github.com/pytorch/pytorch/pull/151897
gist.github.com/shaoyuyoung/0e7d2a586297ae9c8ed14d8706749efc