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.
https://github.com/pytorch/pytorch/pull/151897
https://github.com/pytorch/pytorch/issues/151522
https://gist.github.com/shaoyuyoung/0e7d2a586297ae9c8ed14d8706749efc