Pull Request resolved: https://github.com/pytorch/pytorch/pull/131676 Approved by: https://github.com/zou3519
sympy >= 1.13.0