pytorch/torch/utils/_sympy
Xuehai Pan f0075c179b Pin sympy >= 1.13.0 (#130895)
------

The opposite of #130836. Pin `sympy >= 1.13.0` for Python >= 3.9 and `sympy == 1.12.1` for Python 3.8.

- #130836

See the PR description of #130836 for more details.

`sympy` 1.13.0 introduces some breaking changes which break our tests. More specifically:

- Ref [Backwards compatibility breaks and deprecations](https://github.com/sympy/sympy/wiki/release-notes-for-1.13.0#backwards-compatibility-breaks-and-deprecations)

> BREAKING CHANGE: Float and Integer/Rational no longer compare equal with a == b. From now on Float(2.0) != Integer(2). Previously expressions involving Float would compare unequal e.g. x*2.0 != x*2 but an individual Float would compare equal to an Integer. In SymPy 1.7 a Float will always compare unequal to an Integer even if they have the same "value". Use sympy.numbers.int_valued(number) to test if a number is a concrete number with no decimal part. ([#25614](https://github.com/sympy/sympy/pull/25614) by [@smichr](https://github.com/smichr))

`sympy >= 1.13.0` is required to enable Python 3.13 support. This should be part of #130689.

- #130689

Pull Request resolved: https://github.com/pytorch/pytorch/pull/130895
Approved by: https://github.com/ezyang
2024-07-20 00:59:24 +00:00
..
__init__.py
functions.py Pin sympy >= 1.13.0 (#130895) 2024-07-20 00:59:24 +00:00
interp.py [runtime asserts] deduplicate runtime asserts & CSE (#128599) (#130380) 2024-07-10 19:23:37 +00:00
numbers.py Pin sympy >= 1.13.0 (#130895) 2024-07-20 00:59:24 +00:00
reference.py [runtime asserts] deduplicate runtime asserts & CSE (#128599) (#130380) 2024-07-10 19:23:37 +00:00
singleton_int.py
solve.py
symbol.py
value_ranges.py Pin sympy >= 1.13.0 (#130895) 2024-07-20 00:59:24 +00:00